From f08b9e85ec82a66959d4b83edd82a4292fc2738d Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 3 Oct 2023 20:46:59 +0200 Subject: [PATCH] Add log message for inactive jobs --- Tranga/Jobs/JobBoss.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Tranga/Jobs/JobBoss.cs b/Tranga/Jobs/JobBoss.cs index cf87212..669cb59 100644 --- a/Tranga/Jobs/JobBoss.cs +++ b/Tranga/Jobs/JobBoss.cs @@ -240,6 +240,7 @@ public class JobBoss : GlobalBase AddJobsToQueue(subJobs); }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(); } }