DAG not recognized. Airflow 3.1 with Docker. #62844
Replies: 2 comments 1 reply
-
|
No access to your private repo. There is https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#dag-discovery-safe-mode that you might need to enable if your Dag fole does not contain DAG or airflow , also there might .airflowignore. It's highly recommended that all your scripts are in Dag Bundle folder when you are importing them (then no sys.path manipulation is needed. You can follow https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/modules_management.html |
Beta Was this translation helpful? Give feedback.
-
|
Ok, so I tried the solution @potiuk gave me:
I also found this link: So I modified the YAML file as such:
I still put the scripts outside of the dags/ folder because the dag processor seem to be reading from there. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, can someone please help me check this problem?
I used Airflow with Docker. I did proper mappings so within the container bash, airflow-scheduler and airflow-webserver can recognize the Python file within the dags folder. But it doesn't recognize the DAG itself and wouldn't show on the UI!
So it sees that dags/flight_operations.py exists but can't see the DAG in the file, trying to list the DAG just shows "No data".
docker-compose.yml
dags script
Things I've tried doing:
Thank you in advance :D.
Beta Was this translation helpful? Give feedback.
All reactions