state

Definition

Displays the status of a task instance.

Usage

$ airflow tasks state [-h] [--map-index MAP_INDEX] [-S SUBDIR] [-v]
                    dag_id task_id execution_date_or_run_id

Arguments

Parameter Description

dag_id

ID of the DAG

task_id

ID of the task

execution_date_or_run_id

The execution_date of the DAG or run_id of the DAG run

--map-index

Mapped task index

-S, --subdir

File or directory location for DAGs. Defaults to [AIRFLOW_HOME]/dags, where [AIRFLOW_HOME] is the value set for AIRFLOW_HOME config in airflow.cfg

-h, --help

Print out the help manual for this command

-v, --verbose

Make logging output more verbose

Examples

To display the status of the print_date task instance, run:

$ airflow tasks state tutorial print_date scheduled__2025-04-13T15:26:57.044494+00:00

Output example:

success
Found a mistake? Seleсt text and press Ctrl+Enter to report it