schedule next run part 7
All checks were successful
ci / build (push) Successful in 1m3s

This commit is contained in:
Christopher Hase 2025-03-28 14:11:57 +01:00
parent 5e93d5db37
commit 1a7d09c17e

View file

@ -57,6 +57,9 @@ function executeCommand(): void {
}); });
} }
// **Hier rufen wir die Funktion beim Start der Datei auf**
executeCommand();
// Funktion, um die Konfiguration zu laden // Funktion, um die Konfiguration zu laden
function loadConfig(): Config { function loadConfig(): Config {
@ -131,8 +134,10 @@ function scheduleNextRun(nextRunDate: Date) {
executeCommand(); executeCommand();
// Berechne das nächste Ausführungsdatum und plane es erneut // Berechne das nächste Ausführungsdatum und plane es erneut
const newNextRunDate = calculateNextRunDate(config.daysInterval, config.timeOfDay);
scheduleNextRun(newNextRunDate); //TODO: TESTWEISE ENTFERNEN...
//const newNextRunDate = calculateNextRunDate(config.daysInterval, config.timeOfDay);
//scheduleNextRun(newNextRunDate);
}, timeUntilNextRun); }, timeUntilNextRun);
} }
} }
@ -230,8 +235,5 @@ function render(node: Node): string {
return outputHTML; return outputHTML;
} }
// **Hier rufen wir die Funktion beim Start der Datei auf**
executeCommand();
} }