“气流运行”与“气流运行”之间的区别在于:和“气流测试”;在气流中 [英] Difference between "airflow run" and "airflow test" in Airflow

查看:96
本文介绍了“气流运行”与“气流运行”之间的区别在于:和“气流测试”;在气流中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Airflow中,我一直在使用 airflow run和 airflow test,但不完全了解它们之间的区别。他们有什么区别?谢谢!

In Airflow, I have been using "airflow run" and "airflow test" but don't understand fully how they are different. What are their differences? Thanks!

推荐答案

我自己阅读了文档,发现它可能会造成混淆。

Reading through the docs myself, I see how it can be confusing.

Airflow Run 将运行任务实例,就像您已经直接通过用户界面触发了它。也许最重要的是,状态将记录在数据库中,并且该状态将反映在UI中,就像任务在自动情况下运行一样

Airflow Run will run a task instance as if you had triggered it directly through the UI. Perhaps most importantly the state will be recorded in the database and that state will be reflected in the UI as if the task had run under automatic circumstances

Airflow Test 将跳过任何可能通过自动运行而发生的依赖项(任务,并发性,池等)并在不更新数据库的情况下运行任务。这意味着您可以多次测试任务并将其执行,但是数据库中的状态不会反映通过test命令触发的运行。

Airflow Test will skip any dependency (task, concurrency, pool etc) checks that may otherwise occur through an automatic run and run the task without updating the database. This means that you can "test" a task multiple times and it will execute, but the state in the database will not reflect runs triggered through the test command.

这篇关于“气流运行”与“气流运行”之间的区别在于:和“气流测试”;在气流中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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