[
https://issues.apache.org/jira/browse/AIRFLOW-6577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17103622#comment-17103622
]
Kaxil Naik commented on AIRFLOW-6577:
-------------------------------------
PR to fix this: https://github.com/apache/airflow/pull/8776
Closing the issue as https://issues.apache.org/jira/browse/AIRFLOW-1156
describes the same issue
> DAG Backfill with timedelta runs twice
> --------------------------------------
>
> Key: AIRFLOW-6577
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6577
> Project: Apache Airflow
> Issue Type: Bug
> Components: DAG, DagRun
> Affects Versions: 1.10.7
> Environment: ProductName: Mac OS X
> ProductVersion: 10.14.6
> BuildVersion: 18G2022
> Client: Docker Engine - Community
> Version: 19.03.5
> API version: 1.40
> Go version: go1.12.12
> Git commit: 633a0ea
> Built: Wed Nov 13 07:22:34 2019
> OS/Arch: darwin/amd64
> Experimental: false
> Reporter: Nick Benthem
> Priority: Minor
>
> if you use {{timedelta=__anything__}}, and have {{catchup=False}}, it will
> cause a DOUBLE run of your DAG! The only workaround i found was to use a cron
> timer, i.e.,
> schedule_interval='@daily',
> Rather than
> schedule_interval=timedelta(days=1),
> It almost definitely exists in
> def create_dag_run(self, dag, session=None):
> in
> {{/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airflow/jobs/scheduler_job.py
> }}
> around line {{643}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)