Multiple failed dependencies in Azure Data Factory activity 'dependsOn'

牧云@^-^@ 提交于 2019-12-11 16:44:37

问题


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?

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.


回答1:


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.



来源:https://stackoverflow.com/questions/50859359/multiple-failed-dependencies-in-azure-data-factory-activity-dependson

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!