admin管理员组

文章数量:1125579

I have Airflow (v2.10.4) deployed on k8s, with the git-sync sidecar, which populates the dags PVC. After doing some refactoring of the DAGs, the Airflow UI reports 1 DAG Import Error:

Broken DAG: [/opt/airflow/dags/repo/dags/utils/callbacks.py]
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/opt/airflow/dags/repo/dags/utils/callbacks.py", line 4, in <module>

The file in question (callbacks.py) was deleted and is no longer in git and also no longer in the mounted dags volume. I checked on the scheduler pod:

$ ls /opt/airflow/dags/repo/dags/utils/callbacks.py
ls: cannot access '/opt/airflow/dags/repo/dags/utils/callbacks.py': No such file or directory

Does the webserver pod or anything else in Airflow keep a local copy or something? Maybe in the DB? How can I clear this error?

本文标签: