GitHub user maithtruong created a discussion: DAG not recognized. Airflow 3.1 with Docker.
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](https://github.com/maithtruong/flight-operations/blob/main/docker-compose.yml) [dags script](https://github.com/maithtruong/flight-operations/blob/main/dags/flight_pipeline.py) Things I've tried doing: - using sys.path so the container recognize the scripts in the scripts folder - creating a Dockerfile to install the necessary dependencies - add PYTHONPATH: /opt/airflow in environment for each of the airflow services Thank you in advance :D. GitHub link: https://github.com/apache/airflow/discussions/62844 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
