气流触发规则“ all_done”和“ all_done”之间有什么区别?和“ all_success”? [英] What is the difference between airflow trigger rule "all_done" and "all_success"?
问题描述
我正在处理的工作流程中的一项要求是等待某个事件在给定时间内发生,如果未发生,则将该任务标记为失败,仍应执行下游任务。
One of the requirement in the workflow I am working on is to wait for some event to happen for given time, if it does not happen mark the task as failed still the downstream task should be executed.
我想知道 all_done是否意味着所有依赖项任务都已完成,无论它们是否成功。
I am wondering if "all_done" means all the dependency tasks are done no matter if they have succeeded or not.
推荐答案
https://airflow.incubator.apache.org/ concepts.html#trigger-rules
all_done表示所有操作均已完成。
all_done means all operations have finished working. Maybe they succeeded, maybe not.
all_success表示所有操作均已正确完成
all_success means all operations have finished without error
所以您的猜测是正确的
这篇关于气流触发规则“ all_done”和“ all_done”之间有什么区别?和“ all_success”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!