mirror of
https://github.com/C9Glax/tranga.git
synced 2025-05-21 21:53:01 +02:00
Add Debug-output for when next job is due if not job was started
This commit is contained in:
parent
64e31fad54
commit
7b38d0aa2b
@ -173,6 +173,10 @@ public static class Tranga
|
|||||||
$"\t{jobsNotHeldBackByConnector.Count} not held back by Connector\n" +
|
$"\t{jobsNotHeldBackByConnector.Count} not held back by Connector\n" +
|
||||||
$"{startJobs.Count} were started.");
|
$"{startJobs.Count} were started.");
|
||||||
|
|
||||||
|
if (Log.IsDebugEnabled && dueJobs.Count < 1)
|
||||||
|
if(waitingJobs.MinBy(j => j.NextExecution) is { } nextJob)
|
||||||
|
Log.Debug($"Next job in {nextJob.NextExecution.Subtract(DateTime.UtcNow)} (at {nextJob.NextExecution}): {nextJob.JobId}");
|
||||||
|
|
||||||
(Thread, Job)[] removeFromThreadsList = RunningJobs.Where(t => !t.Key.IsAlive)
|
(Thread, Job)[] removeFromThreadsList = RunningJobs.Where(t => !t.Key.IsAlive)
|
||||||
.Select(t => (t.Key, t.Value)).ToArray();
|
.Select(t => (t.Key, t.Value)).ToArray();
|
||||||
Log.Debug($"Remove from Threads List: {removeFromThreadsList.Length}");
|
Log.Debug($"Remove from Threads List: {removeFromThreadsList.Length}");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user