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.

Did you enjoy reading this article?
Would you like to learn more about software craft in data engineering and MLOps?

Subscribe to the newsletter or add this blog to your RSS reader (does anyone still use them?) to get a notification when I publish a new essay!

Newsletter

Do you enjoy reading my articles?
Subscribe to the newsletter if you don't want to miss the new content, business offers, and free training materials.

Bartosz Mikulski

Bartosz Mikulski

  • Data/MLOps engineer by day
  • DevRel/copywriter by night
  • Python and data engineering trainer
  • Conference speaker
  • Contributed a chapter to the book "97 Things Every Data Engineer Should Know"
  • Twitter: @mikulskibartosz
Newsletter

Do you enjoy reading my articles?
Subscribe to the newsletter if you don't want to miss the new content, business offers, and free training materials.