list

Definition

Displays the list of tasks within a DAG.

Usage

$ airflow tasks list [-h] [-S SUBDIR] [-t] [-v] dag_id

Arguments

Parameter Description

dag_id

The ID of the DAG

-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

-t, --tree

Deprecated. Use dags show instead. Displays tasks in a tree. Note that generating the tree can be slow and the output can be very large for some DAGs

-h, --help

Print out the help manual for this command

-v, --verbose

Make logging output more verbose

Examples

To display the list of tasks in the tutorial DAG, run:

$ airflow tasks list tutorial

Output example:

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