2
0

Add log to see wait time

This commit is contained in:
glax 2023-09-19 19:54:00 +02:00
parent 0209159c5c
commit b149d377dc

View File

@ -223,7 +223,7 @@ public class JobBoss : GlobalBase
queueHead.ResetProgress(); queueHead.ResetProgress();
jobQueue.Dequeue(); jobQueue.Dequeue();
ExportJobsList(); ExportJobsList();
Log($"Next job in {jobQueue.Peek().nextExecution.Subtract(DateTime.Now)}"); Log($"Next job in {jobs.OrderBy(job => job.nextExecution).First().nextExecution.Subtract(DateTime.Now)}");
}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();