peidaqi opened a new issue #12387:
URL: https://github.com/apache/airflow/issues/12387


   **Apache Airflow version**: 1.10.12
   
   **Environment**: Mac Os Catalina Python 3.8.6
   
   **What happened**:
   
   I want to get a list of existing DAGs and check if a DAG already existed 
before creation. 
   With in the DAG file, what I did was calling:
   models.DagBag().dags
   
   This causes a maximum recursion error in Python. 
   The reason why I need this is a certain dynamic DAG_X can be created by two 
other dags, either DAG_1 or DAG_2.
   
   
   **What you expected to happen**:
   Get a list of existing DAGs
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to