Error Handling on Azure Data Factory V2

谁说胖子不能爱 提交于 2019-12-12 11:21:12

问题


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 waitOnCompletionchecked. Any inner pipeline failure within ExecutePipeline will make the outside ExecutePipeline fail.



来源:https://stackoverflow.com/questions/51625549/error-handling-on-azure-data-factory-v2

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