From cb6482ebaece7b03477d3b3e8adbd385bc934b03 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 19 Sep 2023 20:04:25 +0200 Subject: [PATCH] Add logmessage on startup for next job --- Tranga/Jobs/JobBoss.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Tranga/Jobs/JobBoss.cs b/Tranga/Jobs/JobBoss.cs index 01c4fc5..c0426b0 100644 --- a/Tranga/Jobs/JobBoss.cs +++ b/Tranga/Jobs/JobBoss.cs @@ -14,6 +14,7 @@ public class JobBoss : GlobalBase this.jobs = new(); LoadJobsList(connectors); this.mangaConnectorJobQueue = new(); + Log($"Next job in {jobs.MinBy(job => job.nextExecution)?.nextExecution.Subtract(DateTime.Now)} {jobs.MinBy(job => job.nextExecution)?.id}"); } public void AddJob(Job job)