show-dependencies

Definition

Generates a visual representation of dependencies.

Usage

$ airflow dags show-dependencies [-h] [--imgcat] [-s SAVE] [-S SUBDIR] [-v]

Arguments

Parameter Description

--imgcat

Displays a graph using the imgcat tool. This option only works in iTerm

-s, --save

Saves the result to the specified file. The file format is determined by the file extension. For more information about supported format, see Output Formats

-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 dependencies, run:

$ airflow dags show-dependencies

Output example:

digraph {
        graph [rankdir=LR]
        subgraph dataset_produces_2 {
                graph [label=dataset_produces_2 labelloc=t rankdir=LR]
                dataset_produces_2 -> s3:"//dag2/output_1.txt"
                s3:"//dag2/output_1.txt" -> dataset
        }
}
Found a mistake? Seleсt text and press Ctrl+Enter to report it