krisnaru opened a new issue, #37647: URL: https://github.com/apache/airflow/issues/37647
### Apache Airflow version 2.8.1 ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? Unable to load DAGs using dag_bag.py also scheduler does not report any errors in logs. My code organization: - root/project1/dag1.py - root/project2/dag2.py - root/airflow/dag_bag.py dag_bag.py ` from project1.dag1 import load_dag() from project1.dag2 import load_dag() dag1=load_dag() dag2=load_dag() ` settings ` PYTHONPATH: root dags_folder: root/airflow/ ` If i move the dag code to dags_folder, then dags show up. Is there a design limitation on DAG loading, scheduler does not load DAGs using import paths? ### What you think should happen instead? DAGs should be loaded using dag_bag.py successfully ### How to reproduce 1. Create code structure according to below hierarchy - root/project1/dag1.py - root/project2/dag2.py - root/airflow/dag_bag.py 2. And start scheduler ### Operating System Debian GNU/Linu ### Versions of Apache Airflow Providers Not required for this issue ### Deployment Official Apache Airflow Helm Chart ### Deployment details Kubernetes deployment ### Anything else? I can provide sample code and repro steps if needed ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
