schedule next run part 3
This commit is contained in:
parent
68b996535d
commit
d5891cbdd8
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue