-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow timetable to slightly miss catchup cutoff (#33404)
(cherry picked from commit a6299d4)
- Loading branch information
1 parent
dfe129f
commit a597d5e
Showing
3 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CronTriggerTimetable is now less aggressive when trying to skip a run | ||
|
||
When setting ``catchup=False``, CronTriggerTimetable no longer skips a run if | ||
the scheduler does not query the timetable immediately after the previous run | ||
has been triggered. | ||
|
||
This should not affect scheduling in most cases, but can change the behaviour if | ||
a DAG is paused-unpaused to manually skip a run. Previously, the timetable (with | ||
``catchup=False``) would only start a run after a DAG is unpaused, but with this | ||
change, the scheduler would try to look at little bit back to schedule the | ||
previous run that covers a part of the period when the DAG was paused. This | ||
means you will need to keep a DAG paused longer (namely, for the entire cron | ||
period to pass) to really skip a run. | ||
|
||
Note that this is also the behaviour exhibited by various other cron-based | ||
scheduling tools, such as anacron. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters