Created
September 11, 2023 14:39
-
-
Save jmcbroom/cc3e90cc118f762f04a5129b32416f7c to your computer and use it in GitHub Desktop.
Print a list of all Airflow DAGs and their `schedule_interval`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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