Skip to content

Commit

Permalink
Remove 'legacy' definition for CronDataIntervalTimetable (#39780)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taragolis authored May 25, 2024
1 parent 2b6f8ff commit cae9663
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions airflow/config_templates/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2495,17 +2495,16 @@ scheduler:
create_cron_data_intervals:
description: |
Whether to create DAG runs that span an interval or one single point in time for cron schedules, when
a cron string is provided to `schedule` argument of a DAG. If True,
CronDataIntervalTimetable is used, which is the legacy Airflow behavior suitable
for DAGs with well-defined data_interval you get contiguous intervals from the end of the previous
interval up to the scheduled datetime. If False, CronTriggerTimetable is used,
which is closer to the behavior of cron itself.
a cron string is provided to ``schedule`` argument of a DAG.
Notably, for CronTriggerTimetable, the logical_date is the same as the time the DAG Run will try to
schedule, while for CronDataIntervalTimetable, the logical_date is the beginning of the data interval,
but the DAG Run will try to schedule at the end of the data interval. For more differences
between the two Timetables, see
https://airflow.apache.org/docs/apache-airflow/stable/authoring-and-scheduling/timetable.html#differences-between-the-two-cron-timetables
* ``True``: **CronDataIntervalTimetable** is used, which is suitable
for DAGs with well-defined data interval. You get contiguous intervals from the end of the previous
interval up to the scheduled datetime.
* ``False``: **CronTriggerTimetable** is used, which is closer to the behavior of cron itself.
Notably, for **CronTriggerTimetable**, the logical date is the same as the time the DAG Run will
try to schedule, while for **CronDataIntervalTimetable**, the logical date is the beginning of
the data interval, but the DAG Run will try to schedule at the end of the data interval.
version_added: 2.9.0
type: boolean
example: ~
Expand Down

0 comments on commit cae9663

Please sign in to comment.