DEV Community

Joe Auty
Joe Auty

Posted on

How To Poll an Airflow Job (i.e. DAG Run)

Ever wanted to actually know when an Airflow DAG Run has completed? Perhaps your use case involves this completed work being some sort of workflow dependency, or perhaps it is used in a CI/CD pipeline. I'm sure there are a myriad of possible scenarios here beyond ours at Redactics, which is using Airflow to clone a database for a dry-run of a database migration, but you be the judge!

Here is the repo

In this repo you can find a sample Dockerfile, a sample Kubernetes job that provides some context as to how this poller script can be used, as well as the script itself. There isn't much to it, but I hope it saves some developers a moment or three of their time should they need to recreate this functionality!

Top comments (0)