如何从不同的开始时间部署修改后的气流障碍? [英] How to deploy modified airflow dag from a different start time?

查看:68
本文介绍了如何从不同的开始时间部署修改后的气流障碍?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们说调度程序停止了5个小时,而我的dag每小时调度两次。现在,当我重新启动调度程序时,我不想让气流回填所有丢失的实例,而是希望它从当前时刻继续。

Lets say scheduler is stopped for 5 hours and I had dag scheduled for twice every hour. Now when I restart the scheduler I do not want to airflow to backfill all the instances those were missed, Instead I want it to continue from the current hour.

推荐答案

要实现此行为,您可以使用 LatestOnlyOperator ,它最近才是介绍给了大师,直到您的DAG开始。不过,它目前不是已发布版本的一部分(1.7.1.3是撰写本文时的最新版本)。

To achieve this behavior, you can use the LatestOnlyOperator, which was just recently introduced to master, to the start of your DAG. It is not currently part of a released version though (1.7.1.3 is the latest version as of the writing of this post).

这篇关于如何从不同的开始时间部署修改后的气流障碍?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆