Fix CronScheduler skipping 1 scheduled time after application restart
This commit is contained in:
parent
edd5b06a46
commit
70c4d59fdc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user