我如何检查何时为特定的dag计划了下一次Airflow DAG运行?

sio*_*owy 4 python scheduled-tasks airflow

我已经设置了气流,并计划将某些DAG每天运行一次,设置为“ 0 0 * * *”。

我想检查什么时候下一次特定的dag计划运行,但是我看不到在管理员中可以执行的操作。

Vik*_*kar 6

在气流的版本2.0.0,在命令行中,可以找到下一个执行

airflow dags next-execution <dag_id>
Run Code Online (Sandbox Code Playgroud)


y2k*_*ham 5

If you want you use the Airflow's CLI, there's next_execution option

Get the next execution datetime of a DAG.

airflow next_execution [-h] [-sd SUBDIR] dag_id
Run Code Online (Sandbox Code Playgroud)