How to check the next execution date of an Airflow DAG

This article is a part of my "100 data engineering tutorials in 100 days" challenge. (29/100)

As far as I know, there is no way to check the next execution date in the Airflow web interface. It may be possible if you make some customizations of your Airflow instance or use a plugin.

If you are quite desperate, you may try to copy the cron expression to https://crontab.guru/ and check the execution date using that website.

In this article, I will use something way simpler. All we need is the airflow command-line interface.

We have to copy the DAG id and use the next_execution command like this:

1
airflow next_execution dag_id

In the output, we are going to get the next execution date.


Subscribe to the newsletter and join the free email course.


Remember to share on social media!
If you like this text, please share it on Facebook/Twitter/LinkedIn/Reddit or other social media.

If you want to contact me, send me a message on LinkedIn or Twitter.

Would you like to have a call and talk? Please schedule a meeting using this link.


Bartosz Mikulski
Bartosz Mikulski * data/machine learning engineer * conference speaker * co-founder of Software Craft Poznan & Poznan Scala User Group

Subscribe to the newsletter and get access to my free email course on building trustworthy data pipelines.

Do you want to work with me at riskmethods?

REMOTE position (available in Poland or Germany)