ashb commented on issue #15649: URL: https://github.com/apache/airflow/issues/15649#issuecomment-849562299
Is the code where you have `redshift =` in the `py_get_query.py` file? If so the scheduler is still going to parse all python files to look for dags, and parsing = running any and all code at the top level of the file. You can either add the non-dag python files to the .airflowignore file https://airflow.apache.org/docs/apache-airflow/stable/concepts/dags.html?highlight=airflowignore#loading-dags Or better yet would be to not place non-DAG files in the dags folder and place them somewhere else in the Python include path. -- 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]
