Airflow subdag 在其任务被跳过时显示成功

Airflow subdag shows success while its tasks are skipped

我有一个 subdag,它使用包含 soft_fail=true 的传感器运算符,以便跳过而不是失败任务。

它运行良好,除了整个子标记的状态显示为“成功”而不是“已跳过”,这在监视流程时可能会产生误导,因为我不知道文件是否已找到,或者干脆跳过。关于如何使 subdag 状态继承子任务状态的任何想法?

虽然“已跳过”状态并不是失败,但您请求而非 执行任务,它确实做到了。还要考虑相反的情况,用户惊讶于他们的 运行 失败只是因为 Airflow 按照他们的要求做了并跳过了所有任务。

这个关于跳过状态的问题之前已经讨论过了。例如,它是 reported in 1.8.0 and fixed in 1.8.1, but in later versions this fix was not propagated.

您可以通过在 three dots of this link.

中选择 Reference in new issue 来打开一个问题并请求更改