Azure数据工厂V2上的错误处理 [英] Error Handling on Azure Data Factory V2

查看:77
本文介绍了Azure数据工厂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"
  ]
}

但是,仅当所有activity1activity2都失败时才会触发Web活动.我想要的是使被触发的activity1activity2失败.相反,我使用了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 waitOnCompletionchecked. Any inner pipeline failure within ExecutePipeline will make the outside ExecutePipeline fail.

这篇关于Azure数据工厂V2上的错误处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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