How to stop DAG from backfilling? catchup_by_default=False and catchup=False does not seem to work and Airflow Scheduler from backfilling

前端 未结 3 876
不思量自难忘°
不思量自难忘° 2021-01-14 14:50

The setting catchup_by_default=False in airflow.cfg does not seem to work. Also adding catchup=False to the DAG doesn\'t work neither.

Here\'s how to reproduce the

3条回答
  •  天命终不由人
    2021-01-14 14:55

    I know this thread is a little old. But, setting catch_up_default = False in airflow.cfg did stop airflow from backfilling for me. (My Airflow version is 1.10.12)

    I resent that this config is not set to False by default. This and the fact that the dag starts one schedule_interval after the start_date are the two most confusing things that stumps Airflow beginners.

    The first time I used Airflow, I wasted one entire afternoon, trying to figure out why my test task which was scheduled to run every 5 mins was running at quick succession (say every 5-6 seconds). It took me a while to realize that it was backfill in action.

提交回复
热议问题