From d5891cbdd8d5a059f7efd83e7e3be12c7d9279ea Mon Sep 17 00:00:00 2001 From: Christopher Hase Date: Fri, 28 Mar 2025 13:28:46 +0100 Subject: [PATCH] schedule next run part 3 --- broker.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/broker.ts b/broker.ts index 83b8336..331fbde 100644 --- a/broker.ts +++ b/broker.ts @@ -47,6 +47,7 @@ exec('iching divine', (error, stdout, stderr) => { // Berechne das nächste Ausführungsdatum const nextRunDate = calculateNextRunDate(config.daysInterval, config.timeOfDay); + console.log(`Gegenwärtig: ` + new Date()); console.log(`Nächste Ausführung: ${nextRunDate}`); // Starte das Scheduling @@ -109,7 +110,7 @@ function calculateNextRunDate(daysInterval: number, timeOfDay: string): Date { return currentDate;*/ - currentDate.setMinutes(currentDate.getMinutes() + 1); //TODO: JUST FOR DEBUGGING!!! + currentDate.setMinutes(currentDate.getMinutes() + 2); //TODO: JUST FOR DEBUGGING!!! return currentDate; }