One - One Code All

Blog Content

airflow获取dag状态dag_state

Python 并行计算   2014-09-05 22:55:03

官网:https://airflow.readthedocs.io/en/latest/cli.html?highlight=dag_state 


dag_state

Get the status of a dag run

airflow dag_state [-h] [-sd SUBDIR] dag_id execution_date

Positional Arguments

dag_idThe id of the dag
execution_dateThe execution date of the DAG

Named Arguments

-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”



上一篇:airflow执行dag,trigger_dag
下一篇:内存管理库TCMalloc和Jemalloc比较

The minute you think of giving up, think of the reason why you held on so long.