This commit is contained in:
parent
5e93d5db37
commit
1a7d09c17e
1 changed files with 7 additions and 5 deletions
12
broker.ts
12
broker.ts
|
@ -57,6 +57,9 @@ function executeCommand(): void {
|
|||
});
|
||||
}
|
||||
|
||||
// **Hier rufen wir die Funktion beim Start der Datei auf**
|
||||
executeCommand();
|
||||
|
||||
// Funktion, um die Konfiguration zu laden
|
||||
function loadConfig(): Config {
|
||||
|
||||
|
@ -131,8 +134,10 @@ function scheduleNextRun(nextRunDate: Date) {
|
|||
executeCommand();
|
||||
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
@ -230,8 +235,5 @@ function render(node: Node): string {
|
|||
|
||||
return outputHTML;
|
||||
}
|
||||
|
||||
// **Hier rufen wir die Funktion beim Start der Datei auf**
|
||||
executeCommand();
|
||||
}
|
||||
|
Loading…
Reference in a new issue