Change IsStarted to follow IsEnabled value upon startup.

Changes behavior of IsStarted to follow the same value of IsEnabled.
This commit is contained in:
Jon Welfringer
2025-09-04 21:44:14 -07:00
committed by GitHub
parent 966fc55594
commit b049be9d83

View File

@ -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);
} }