jcrobak commented on issue #42111: URL: https://github.com/apache/airflow/issues/42111#issuecomment-2338425708
here's a quick repro with docker-compose, in case you need it: ``` curl -LfO 'https://airflow.apache.org/docs/apache-airflow/2.10.1/docker-compose.yaml' sed -e '/\/opt\/airflow\/dags/ s/^#*/#/' < docker-compose.yaml mkdir -p ./dags ./logs ./plugins ./config echo -e "AIRFLOW_UID=$(id -u)" >| .env mkdir dags/example cat << EOF >>| dags/example/airflow_dag.py from datetime import datetime, timedelta from airflow.models.dag import DAG from airflow.operators.bash import BashOperator with DAG( "joe-tutorial", description="A simple tutorial DAG", schedule=timedelta(days=1), start_date=datetime(2021, 1, 1), catchup=False, tags=["example"], ) as dag: t1 = BashOperator( task_id="print_date", bash_command="date", ) EOF cat << EOF >> Dockerfile FROM apache/airflow:2.10.1-python3.12 COPY --chown=airflow:root dags /opt/dags RUN rmdir /opt/airflow/dags && ln -s /opt/dags/ /opt/airflow/dags EOF docker build . -t airflow:2.10.1-repro echo -e "AIRFLOW_IMAGE_NAME=airflow:2.10.1-repro" >> .env docker-compose up ``` eventually you'll see a log line like: ``` airflow-scheduler-1 | [2024-09-09T15:23:14.923+0000] {manager.py:548} INFO - DAG joe-tutorial is missing and will be deactivated. airflow-scheduler-1 | [2024-09-09T15:23:14.927+0000] {manager.py:560} INFO - Deactivated 1 DAGs which are no longer present in file. airflow-scheduler-1 | [2024-09-09T15:23:14.933+0000] {manager.py:564} INFO - Deleted DAG joe-tutorial in serialized_dag table ``` -- 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]
