generate-dag-yaml

Definition

Generates YAML files for all tasks in a DAG. This command can be useful for debugging tasks without launching them in a cluster.

Usage

$ airflow kubernetes generate-dag-yaml [-h] [-o OUTPUT_PATH] [-S SUBDIR] [-v]
                                     dag_id logical_date

Arguments

Parameter Description

dag_id

The ID of the DAG

logical_date

The logical date of the DAG

-o, --output-path

The output path for generated YAML files. Default: [CWD]

-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 generate YAML files for the tutorial DAG, run:

$ airflow kubernetes generate-dag-yaml tutorial
Found a mistake? Seleсt text and press Ctrl+Enter to report it