You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/05/27 11:41:16 UTC

[GitHub] [airflow] ashb commented on issue #15649: Dag Import error in UI with unreal message Airflow 2.02

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:
users@infra.apache.org