airflow.timetables.interval
¶
Module Contents¶
-
class
airflow.timetables.interval.
CronDataIntervalTimetable
(cron: str, timezone: Timezone)[source]¶ Bases:
airflow.timetables.interval._DataIntervalTimetable
Timetable that schedules data intervals with a cron expression.
This corresponds to
schedule_interval=<cron>
, where<cron>
is either a five/six-segment representation, or one ofcron_presets
.The implementation extends on croniter to add timezone awareness. This is because croniter works only with naive timestamps, and cannot consider DST when determining the next/previous time.
Don't pass
@once
in here; useOnceTimetable
instead.
-
class
airflow.timetables.interval.
DeltaDataIntervalTimetable
(delta: Delta)[source]¶ Bases:
airflow.timetables.interval._DataIntervalTimetable
Timetable that schedules data intervals with a time delta.
This corresponds to
schedule_interval=<delta>
, where<delta>
is either adatetime.timedelta
ordateutil.relativedelta.relativedelta
instance.