diff --git a/pandalib-core/src/main/java/fr/pandacube/lib/core/cron/CronScheduler.java b/pandalib-core/src/main/java/fr/pandacube/lib/core/cron/CronScheduler.java index d2e944a..32d1ead 100644 --- a/pandalib-core/src/main/java/fr/pandacube/lib/core/cron/CronScheduler.java +++ b/pandalib-core/src/main/java/fr/pandacube/lib/core/cron/CronScheduler.java @@ -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; }