Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions task-sdk/src/airflow/sdk/definitions/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@
"fileloc",
"template_searchpath",
"last_loaded",
"schedule",
# TODO: Task-SDK: we should be hashing on timetable now, not schedule!
# "timetable",
"timetable",
}
)

Expand Down
5 changes: 5 additions & 0 deletions task-sdk/src/airflow/sdk/definitions/timetables/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@

from __future__ import annotations

import attrs

from airflow.sdk.bases.timetable import BaseTimetable


@attrs.define
class NullTimetable(BaseTimetable):
"""
Timetable that never schedules anything.
Expand All @@ -30,6 +33,7 @@ class NullTimetable(BaseTimetable):
can_be_scheduled = False


@attrs.define
class OnceTimetable(BaseTimetable):
"""
Timetable that schedules the execution once as soon as possible.
Expand All @@ -38,6 +42,7 @@ class OnceTimetable(BaseTimetable):
"""


@attrs.define
class ContinuousTimetable(BaseTimetable):
"""
Timetable that schedules continually, while still respecting start_date and end_date.
Expand Down