duynguyenhoang commented on issue #15572:
URL: https://github.com/apache/airflow/issues/15572#issuecomment-887214103


   Our team had same issue with import. Finally we decided to move the `utils` 
stuff to `plugins` out of  `dags` folder and it works like a charm
   
   You will see the structure is similar to:
   
   ```
   /opt/airflow
   ├── dags
   │   ├── __init__.py
   │   ├── example_k8s
   │   │   └── test.py
   ├── plugins
   │   └── utils
   │       ├── defaults.py
   │       ├── __init__.py
   └── 
   ```
   
   For everyone who deploy Airflow k8s cluster and using gitsync, there are 
some extra steps requires (We haven't tested it yet, but we are going to do 
that and update the result here.)
   * Change `AIRFLOW__CORE__PLUGINS_FOLDER` to gitsync repo plugins folder, 
example `/opt/airflow/repo/plugin`
   * Set this 
https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#reload-on-plugin-change
 to `True`
   


-- 
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]


Reply via email to