Merge pull request #5576 from W6HBR/dev

fix job status issue for disabled jobs
This commit is contained in:
Shaun Walker
2025-09-05 11:07:52 -04:00
committed by GitHub
3 changed files with 23 additions and 12 deletions

View File

@ -252,8 +252,8 @@ namespace Oqtane.Infrastructure
Job job = jobs.GetJobs().Where(item => item.JobType == jobTypeName).FirstOrDefault();
if (job != null)
{
// reset in case this job was forcefully terminated previously
job.IsStarted = true;
// reset in case this job was enabled and forcefully terminated previously
job.IsStarted = job.IsEnabled;
job.IsExecuting = false;
jobs.UpdateJob(job);
}