Azure数据工厂活动'dependsOn'中多个失败的依赖项 [英] Multiple failed dependencies in Azure Data Factory activity 'dependsOn'

查看:53
本文介绍了Azure数据工厂活动'dependsOn'中多个失败的依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当Azure Data Factory控件活动中存在多个活动依赖项("dependsOn")条件时,为使该活动运行,它们都需要为真吗?

When there are multiple activity dependencies ("dependsOn") conditions in an Azure Data Factory control activity do they all need to be true for the activity to run?

例如,如果在任何其他活动失败的情况下应该运行清理活动,则可能有多个依赖项,其"dependencyCondition"为"failed".

For example, if a clean-up activity should run if any other activity fails there can be several dependencies with a "dependencyCondition" of "failed".

"dependsOn": [
            {
                "activity": "FirstActivity",
                "dependencyConditions": [
                    "Failed"
                ]
            },
            {
                "activity": "SecondActivity",
                "dependencyConditions": [
                    "Failed"
                ]
            }
]

当存在多个失败"依赖项时,如果其中任何一个失败或仅在全部失败时,活动才能运行?

When there are multiple "Failed" dependencies will the activity run if any of them fails or only if they all fail?

我知道我可以使每个活动都依赖于下一个活动,但这可能会使它们同步运行.我希望它们能够异步运行,并且仅在其依赖的一个或多个活动失败时才运行清理活动.

I know I can just make each activity dependent on the next but that will may them run synchronously. I'd like them to be able to run asynchronously and only run the clean-up activity if one or more of the activities it depends on fails.

推荐答案

ADF依赖项使用和"运算符,这意味着只有它们全部失败,活动才会运行.

ADF dependencies use "and" operator, which means only all of them failed, the activity will be run.

在您的情况下,我认为您可以为每个活动添加一个清理活动.

In you scenario, I think you could add a cleanup activity for each activity.

这篇关于Azure数据工厂活动'dependsOn'中多个失败的依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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