2
0

Add log message for inactive jobs

This commit is contained in:
glax 2023-10-03 20:46:59 +02:00
parent 95fcc73c74
commit f08b9e85ec

View File

@ -240,6 +240,7 @@ public class JobBoss : GlobalBase
AddJobsToQueue(subJobs); AddJobsToQueue(subJobs);
}else if (queueHead.progressToken.state is ProgressToken.State.Running && DateTime.Now.Subtract(queueHead.progressToken.lastUpdate) > TimeSpan.FromMinutes(5)) }else if (queueHead.progressToken.state is ProgressToken.State.Running && DateTime.Now.Subtract(queueHead.progressToken.lastUpdate) > TimeSpan.FromMinutes(5))
{ {
Log($"{queueHead} inactive for more than 5 minutes. Cancelling.");
queueHead.Cancel(); queueHead.Cancel();
} }
} }