Skip to content

Instantly share code, notes, and snippets.

@jmcbroom
Created September 11, 2023 14:39
Show Gist options
  • Save jmcbroom/cc3e90cc118f762f04a5129b32416f7c to your computer and use it in GitHub Desktop.
Save jmcbroom/cc3e90cc118f762f04a5129b32416f7c to your computer and use it in GitHub Desktop.
Print a list of all Airflow DAGs and their `schedule_interval`
from airflow.models.dagbag import DagBag
bag = DagBag()
for id in sorted(bag.dag_ids):
dag = bag.get_dag(id)
print(f"{id}: {dag.schedule_interval}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment