mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-13 06:47:54 +02:00
Jobs:
Fix multiple jobs running on the same connector Fix state-updates Add more Documentation to JobController Only allow non-running jobs to be started
This commit is contained in:
@ -49,8 +49,10 @@ public abstract class Job
|
||||
PgsqlContext context = scope.ServiceProvider.GetRequiredService<PgsqlContext>();
|
||||
|
||||
this.state = JobState.Running;
|
||||
context.SaveChanges();
|
||||
IEnumerable<Job> newJobs = RunInternal(context);
|
||||
this.state = JobState.Completed;
|
||||
context.SaveChanges();
|
||||
return newJobs;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user