Skip to content

Commit

Permalink
fix(webserver): reset correctly nextExecutionDate when enabling schedule
Browse files Browse the repository at this point in the history
close #6681
  • Loading branch information
Skraye committed Jan 8, 2025
1 parent a1238a9 commit 35ffe7e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ public HttpResponse<Trigger> 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);
Expand Down

0 comments on commit 35ffe7e

Please sign in to comment.