Azure数据工厂V2上的错误处理 [英] Error Handling on Azure Data Factory V2
问题描述
团队.
我遇到了使用Web Activity处理ADF2中的错误的情况.在管道中,任何活动都会失败,它应该触发Web活动.我将Web活动附加到每个活动的failed
状态之后.因此,网络活动的dependsOn
属性如下所示:
I have a situation to handle errors in ADF2 using Web Activity. Within a pipeline, any activity fails, it should trigger web activity. I attached the web activity after each activity's failed
status. Therefore the web activity's dependsOn
property looks like:
"dependsOn": {
"activity1": [
"Failed"
],
"activity2": [
"Failed"
]
}
但是,仅当所有activity1
和activity2
都失败时才会触发Web活动.我想要的是使被触发的activity1
或activity2
失败.相反,我使用了IfCondition
活动,但它似乎不是正确(正确或正确)的方法.最佳做法是什么?
However, the web activity only gets fired when all activity1
and activity2
are failed. What I wanted was to get that fired either activity1
or activity2
is failed. Instead, I used the IfCondition
activity but it doesn't seem to be the right (correct or proper) way. What would be the best practice?
我试图从过滤pipeline().activities
中获取所有活动,但也不支持.
I tried to get all activities from filtering pipeline().activities
, but it's not supported, either.
推荐答案
You may try ExecutePipeline with waitOnCompletion
checked. Any inner pipeline failure within ExecutePipeline
will make the outside ExecutePipeline
fail.
这篇关于Azure数据工厂V2上的错误处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!