cstenkamp opened a new issue #19743:
URL: https://github.com/apache/airflow/issues/19743


   ### Apache Airflow version
   
   2.1.4
   
   ### Operating System
   
   Ubuntu 20.04.3 (airflow in docker-compose)
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   Docker-Compose stack based on Docker-Image `apache/airflow:2.1.4`
   
   ### What happened
   
   When running a DAG using the DebugExecutor (see below), `catchup=False` is 
ignored and airflow starts backfilling the task.
   
   ### What you expected to happen
   
   With `catchup=False`, Airflow shouldn't schedule all previous tasks but only 
the newest one, regardless of the executor
   
   ### How to reproduce
   
   ```
   from datetime import datetime
   from airflow.models.dag import DAG
   from airflow.operators.dummy import DummyOperator
   
   default_args = {
       "start_date": datetime(2021, 11, 10),
       "catchup": False,
   }
   
   dag_args = dict(
       dag_id="accuracy_checker",
       schedule_interval=None,
       default_args=default_args,
       catchup=False,
       max_active_runs=1,
   )
   
   
   with DAG(**dag_args) as dag:
       start_pipeline = DummyOperator(
           task_id="start_pipeline",
           dag=dag,
       )
   
       finish_pipeline = DummyOperator(
           task_id="finish_pipeline",
           dag=dag,
       )
   
       start_pipeline >> finish_pipeline
   
   
   
   if __name__ == "__main__":
       from airflow.utils.state import State
   
       dag.clear(dag_run_state=State.NONE)
       dag.run()
   ```
   
   ### Anything else
   
   -
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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


Reply via email to