Skip to content
Closed
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
20 changes: 20 additions & 0 deletions task-sdk/src/airflow/sdk/api/datamodels/_generated.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ class DagRunAssetReference(BaseModel):


class DagRunState(str, Enum):
"""
All possible states that a DagRun can be in.

These are "shared" with TaskInstanceState in some parts of the code,
so please ensure that their values always match the ones with the
same name in TaskInstanceState.
"""

QUEUED = "queued"
RUNNING = "running"
SUCCESS = "success"
Expand All @@ -112,13 +120,21 @@ class DagRunStateResponse(BaseModel):


class DagRunType(str, Enum):
"""
Class with DagRun types.
"""

BACKFILL = "backfill"
SCHEDULED = "scheduled"
MANUAL = "manual"
ASSET_TRIGGERED = "asset_triggered"


class IntermediateTIState(str, Enum):
"""
States that a Task Instance can be in that indicate it is not yet in a terminal or running state.
"""

SCHEDULED = "scheduled"
QUEUED = "queued"
RESTARTING = "restarting"
Expand Down Expand Up @@ -256,6 +272,10 @@ class TITargetStatePayload(BaseModel):


class TerminalStateNonSuccess(str, Enum):
"""
TaskInstance states that can be reported without extra information.
"""

FAILED = "failed"
SKIPPED = "skipped"
REMOVED = "removed"
Expand Down