Apache Airflow · Arazzo Workflow
Apache Airflow Force a Task Instance State
Version 1.0.0
Preview and then set a task instance's state to unblock a stuck pipeline, verifying the DAG run recovers.
View Spec
View on GitHub
ApacheDAGData PipelineETLOpen SourceOrchestrationPythonSchedulingWorkflowArazzoWorkflows
Provider
Workflows
force-task-instance-state
Override a task instance's state after previewing the affected instances.
Reads the task instance, dry-runs the state change to enumerate the affected instances, applies the new state for real, and re-reads the task instance and DAG run to confirm the override took.
1
readCurrentState
get_task_instance
Read the task instance so the caller can see and record the state being overridden before anything changes.
2
previewStateChange
post_set_task_instances_state
Dry-run the state change. Airflow returns the task instances the real call would modify without touching any of them, which matters because downstream propagation can reach further than expected.
3
applyStateChange
post_set_task_instances_state
Apply the state change for real against the same selection that was previewed.
4
verifyTaskState
get_task_instance
Re-read the task instance and require that its state now matches the requested override.
5
checkRunRecovered
get_dag_run
Read the DAG run to report whether overriding the task released the rest of the pipeline.