2
0

Add log to see wait time

This commit is contained in:
glax 2023-09-19 19:50:39 +02:00
parent e31820eb00
commit 0209159c5c

View File

@ -223,6 +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)}");
}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();