Export Jobs list when finished.

This commit is contained in:
glax 2023-09-19 19:49:42 +02:00
parent c4d69c27a4
commit e31820eb00

View File

@ -220,12 +220,15 @@ public class JobBoss : GlobalBase
queueHead.progressToken.Complete(); queueHead.progressToken.Complete();
break; break;
} }
queueHead.ResetProgress();
jobQueue.Dequeue(); jobQueue.Dequeue();
ExportJobsList();
}else if (queueHead.progressToken.state is ProgressToken.State.Standby) }else if (queueHead.progressToken.state is ProgressToken.State.Standby)
{ {
Job[] subJobs = jobQueue.Peek().ExecuteReturnSubTasks().ToArray(); Job[] subJobs = jobQueue.Peek().ExecuteReturnSubTasks().ToArray();
AddJobs(subJobs); AddJobs(subJobs);
AddJobsToQueue(subJobs); AddJobsToQueue(subJobs);
ExportJobsList();
} }
} }
} }