79620831

Date: 2025-05-14 06:30:49
Score: 3.5
Natty:
Report link
from airflow import models
dag_bag = models.DagBag()
for dag in dag_bag.dags.values():
    print(dag.schedule_interval, dag.dag_id)

I also found this dag_id property useful. It prints names of DAGs. Nevertheless I haven't found dags which I created. Is there any other Object than DagBag which contain another set of DAGs or all DAGs for the server where Airflow is running?

Reasons:
  • Blacklisted phrase (1): Is there any
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: vitorek