Airflow 气流-如何忽略回填中成功的任务?

Airflow 气流-如何忽略回填中成功的任务?,airflow,apache-airflow,Airflow,Apache Airflow,我已将新任务添加到我的DAG中,它需要对其进行回填。目前,当我运行时,它会运行所有任务(新任务和旧任务),我想忽略已经成功的旧任务 -i, --ignore_dependencies Skip upstream tasks, run only the tasks matching the regexp. Only works in conjunction with task_regex 是否有方法跳过回填中状态为成

我已将新任务添加到我的DAG中,它需要对其进行回填。目前,当我运行
时,它会运行所有任务(新任务和旧任务),我想忽略已经成功的旧任务

-i, --ignore_dependencies
                    Skip upstream tasks, run only the tasks matching the
                    regexp. Only works in conjunction with task_regex

是否有方法跳过回填中状态为成功的任务?

从1.8.1版开始,回填不应安排成功的任务,请参阅

请注意,您还可以指定要在回填中运行的任务:

-t TASK_REGEX, --task_regex TASK_REGEX
                    The regex to filter specific task_ids to backfill
                    (optional)
如果新任务依赖于任何可能未成功的旧任务,则“忽略依赖项”标志也可能有助于您

-i, --ignore_dependencies
                    Skip upstream tasks, run only the tasks matching the
                    regexp. Only works in conjunction with task_regex

从1.8.1版开始,成功的任务不应通过回填计划,请参阅

请注意,您还可以指定要在回填中运行的任务:

-t TASK_REGEX, --task_regex TASK_REGEX
                    The regex to filter specific task_ids to backfill
                    (optional)
如果新任务依赖于任何可能未成功的旧任务,则“忽略依赖项”标志也可能有助于您

-i, --ignore_dependencies
                    Skip upstream tasks, run only the tasks matching the
                    regexp. Only works in conjunction with task_regex

如果要回填V1.8.1+中的所有任务,则需要先进行气流清理。i、 e.
气流净化-s 2018-06-11-e 2018-06-11车型年款
然后
气流回填-s 2018-06-11-e 2018-06-11车型年款
。请注意,“清除”命令将删除任务实例的元数据,就好像dag在当天从未运行过一样。如果要从v 1.8.1+中回填所有任务,则需要先执行“清除”。i、 e.
气流净化-s 2018-06-11-e 2018-06-11车型年款
然后
气流回填-s 2018-06-11-e 2018-06-11车型年款
。请注意,clear命令将删除任务实例的元数据,就好像dag在当天从未运行过一样。