问题
Team.
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"
]
}
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?
I tried to get all activities from filtering pipeline().activities
, but it's not supported, either.
回答1:
You may try ExecutePipeline with waitOnCompletion
checked. Any inner pipeline failure within ExecutePipeline
will make the outside ExecutePipeline
fail.
来源:https://stackoverflow.com/questions/51625549/error-handling-on-azure-data-factory-v2