states-for-dag-run

Definition

Displays the status of all task instances in a DAG run.

Usage

$ airflow tasks states-for-dag-run [-h] [-o table, json, yaml, plain] [-v]
                                 dag_id execution_date_or_run_id

Arguments

Parameter Description

dag_id

ID of the DAG

execution_date_or_run_id

The execution_date of the DAG or run_id of the DAG run

-o, --output

Output format. Possible values: table, json, yaml, plain. Default: table

-h, --help

Print out the help manual for this command

-v, --verbose

Make logging output more verbose

Examples

Example command for displaying task status information:

$ airflow tasks states-for-dag-run tutorial scheduled__2025-04-13T15:26:57.044494+00:00

Output example:

dag_id   | execution_date                   | task_id    | state   | start_date                       | end_date
=========+==================================+============+=========+==================================+=================================
tutorial | 2025-04-13T15:26:57.044494+00:00 | print_date | success | 2025-04-14T15:27:12.075391+00:00 | 2025-04-14T15:27:12.311052+00:00
tutorial | 2025-04-13T15:26:57.044494+00:00 | templated  | success | 2025-04-14T15:27:13.274360+00:00 | 2025-04-14T15:27:13.533015+00:00
tutorial | 2025-04-13T15:26:57.044494+00:00 | sleep      | success | 2025-04-14T15:27:13.245757+00:00 | 2025-04-14T15:27:18.510164+00:00
Found a mistake? Seleсt text and press Ctrl+Enter to report it