官网:https://airflow.readthedocs.io/en/latest/cli.html?highlight=dag_state
Get the status of a dag run
airflow dag_state [-h] [-sd SUBDIR] dag_id execution_date
dag_id | The id of the dag |
execution_date | The execution date of the DAG |
-sd, --subdir | File location or directory from which to look for the dag. Defaults to ‘[AIRFLOW_HOME]/dags’ where [AIRFLOW_HOME] is the value you set for ‘AIRFLOW_HOME’ config you set in ‘airflow.cfg’ Default: “[AIRFLOW_HOME]/dags” |