Fix CronScheduler skipping 1 scheduled time after application restart

This commit is contained in:
Marc Baloup 2023-06-15 23:30:08 +02:00
parent edd5b06a46
commit 70c4d59fdc

View File

@ -57,7 +57,7 @@ public class CronScheduler {
CronTask next = tasks.get(0);
if (next.nextRun <= now) {
next.runAsync();
setLastRun(next.taskId, next.nextRun);
setLastRun(next.taskId, now);
onTaskUpdate(false);
continue;
}