栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

气流ExternalTask​​Sensor被卡住

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

气流ExternalTask​​Sensor被卡住

ExternalTaskSensor
假定您依赖于具有相同执行日期的dag运行中的任务。

这意味着在您的情况下,您会拖延

a
并且
b
需要按照相同的时间表运行(例如,每天的9:00 am或w / e)。

否则,您需要在实例化时使用

execution_delta
或。
execution_date_fn``ExternalTaskSensor

这是运算符内部的文档,以帮助进一步阐明:

:param execution_delta: time difference with the previous execution to    look at, the default is the same execution_date as the current task.    For yesterday, use [positive!] datetime.timedelta(days=1). Either    execution_delta or execution_date_fn can be passed to    ExternalTaskSensor, but not both.:type execution_delta: datetime.timedelta:param execution_date_fn: function that receives the current execution date    and returns the desired execution date to query. Either execution_delta    or execution_date_fn can be passed to ExternalTaskSensor, but not both.:type execution_date_fn: callable


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/379999.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号