Change IsStarted to follow IsEnabled value upon startup.
Changes behavior of IsStarted to follow the same value of IsEnabled.
This commit is contained in:
@ -252,8 +252,8 @@ namespace Oqtane.Infrastructure
|
|||||||
Job job = jobs.GetJobs().Where(item => item.JobType == jobTypeName).FirstOrDefault();
|
Job job = jobs.GetJobs().Where(item => item.JobType == jobTypeName).FirstOrDefault();
|
||||||
if (job != null)
|
if (job != null)
|
||||||
{
|
{
|
||||||
// reset in case this job was forcefully terminated previously
|
// reset in case this job was enabled and forcefully terminated previously
|
||||||
job.IsStarted = true;
|
job.IsStarted = job.IsEnabled;
|
||||||
job.IsExecuting = false;
|
job.IsExecuting = false;
|
||||||
jobs.UpdateJob(job);
|
jobs.UpdateJob(job);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user