When I boot up the Airflow webserver and scheduler for the first time on Oct 25th at around 17:23, and turn on my DAG, I can see that it kicks off two runs for Oct 23rd and Oct 24th:
RUN 1 -> 10-23T17:23
RUN 2 -> 10-24T17:23
Here's my DAG configuration:
default_args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': '2019-01-01',
'retries': 0,
}
dag = DAG(
'my_script',
default_args=default_args,
schedule_interval=datetime.timedelta(days=1),
catchup=False,
)
Since it's past the start_date + schedule_interval and I have set catchup=False, I would expect it to kick off a single DAG run immediately, however I would not expect it to run two.
- Why are two DAG runs being executed?
- How can I prevent this behaviour?