Skip to content
Advertisement

How do I check when my next Airflow DAG run has been scheduled for a specific dag?

I have airflow set up and running with some DAGs scheduled for once a day “0 0 * * *”.

I want to check when is the next time a specific dag has been scheduled to run, but I can’t see where I can do that within the admin.

Advertisement

Answer

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

Get the next execution datetime of a DAG.

JavaScript

UPDATE-1

If you need to do it programmatically (within an Airflow task), you can refer to

JavaScript

UPDATE-2

To get not just the next, but further execution_dates, refer to Airflow – how to get all the future run date

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement