fernhtls commented on issue #9722:
URL: https://github.com/apache/airflow/issues/9722#issuecomment-868308697


   I'm seeing a similar behaviour, but on checking the scheduler / parse logs i 
see the following:
   
   ```
   Traceback (most recent call last):
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/models/dagbag.py", 
line 317, in _load_modules_from_file
       loader.exec_module(new_module)
     File "<frozen importlib._bootstrap_external>", line 848, in exec_module
     File "<frozen importlib._bootstrap>", line 219, in 
_call_with_frames_removed
     File "/opt/airflow/dags/repo/<git_sub_path>/workflows/<path>/dag_file.py", 
line 14, in <module>
       from custom_operators.<operator_something>  import 
<ClassOperatorSomething>
   ModuleNotFoundError: No module named 'custom_operators'
   ```
   
   **ps: have redacted a few pieces of the paths and file names**
   
   Have tried to push a PYTHONPATH env var and it didn't help.
   
   We are using **DAG Seralization** with the following parameters:
   
   ```
   store_dag_code = True
   min_serialized_dag_update_interval = 30
   min_serialized_dag_fetch_interval = 10
   max_num_rendered_ti_fields_per_task = 30
   ```
   
   Airflow version 2.1.0, and we are using the apache-helm chart.


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