diff --git a/webserver/src/main/java/io/kestra/webserver/controllers/api/TriggerController.java b/webserver/src/main/java/io/kestra/webserver/controllers/api/TriggerController.java index 022ba4e74a0..526a5dd658e 100644 --- a/webserver/src/main/java/io/kestra/webserver/controllers/api/TriggerController.java +++ b/webserver/src/main/java/io/kestra/webserver/controllers/api/TriggerController.java @@ -261,6 +261,7 @@ public HttpResponse update( // If we are enabling back a schedule trigger, // then we need to handle its recoverMissedSchedules if (current.getDisabled() && !newTrigger.getDisabled() && abstractTrigger instanceof Schedule schedule) { + nextExecutionDate = schedule.nextEvaluationDate(); RecoverMissedSchedules recoverMissedSchedules = schedule.getRecoverMissedSchedules(); if (recoverMissedSchedules == RecoverMissedSchedules.LAST) { nextExecutionDate = schedule.previousEvaluationDate(conditionContext);