如何运行一个气流任务及其所有依赖项?

编程入门 行业动态 更新时间:2024-10-17 17:20:05
本文介绍了如何运行一个气流任务及其所有依赖项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我怀疑

气流运行dag_id task_id执行日期

将运行所有上游任务,但不会。当看到并非所有相关任务都在运行时,它将简单地失败。如何运行特定任务及其所有依赖项?我猜这是由于气流设计的决定而无法实现的,但是有办法解决吗?

would run all upstream tasks, but it does not. It will simply fail when it sees that not all dependent tasks are run. How can I run a specific task and all its dependencies? I am guessing this is not possible because of an airflow design decision, but is there a way to get around this?

推荐答案

您可以通过使用-i / -I / -A标志以及run命令来独立运行任务。

You can run a task independently by using -i/-I/-A flags along with the run command.

但是是的,气流设计不允许运行特定任务及其所有依赖项。

But yes the design of airflow does not permit running a specific task and all its dependencies.

您可以通过从DAG中删除无关的任务来回填Dag,以进行测试

You can backfill the dag by removing non-related tasks from the DAG for testing purpose

更多推荐

如何运行一个气流任务及其所有依赖项?

本文发布于:2023-11-24 02:12:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623589.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:气流

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!