Azure ADF IF条件步骤的超时选项

huangapple go评论54阅读模式
英文:

Azure ADF timeout option for IF condition step

问题

我们有一个Azure数据工厂管道设置,在其中有3个地方使用了条件。因此,ADF管道每天运行一次,偶尔会出现条件运行2-3小时才手动取消并重新运行的情况。重新运行后,条件在不到10秒内成功。请帮助我了解是否有“IF条件”的超时选项,或者是否有其他方式可以构建它?

尝试在设置中查找超时选项,但找不到任何这样的选项(我们认为会有与ADF中的复制活动相同的超时选项,但没有找到)。

期望是如果条件不成功运行,则在10分钟内超时管道的IF条件。

英文:

We have any Azure Data Factory pipeline setup where there is if condition used in 3 places. So the ADF pipeline runs on daily basis and once in a while we have this the if condition run for around 2-3 hours before we manually cancel and re-run it. On re-running the if condition gets succeeded in under 10 seconds. Could you please help me understand if there is any option for timeout in "IF condition" or is there any way we can build it?

Tried checking the timeout option in settings, but couldn't find any such option.(we thought there will be timeout option same as we see for Copy activity in ADF. but didn't find any)

Expectation is to have the pipeline IF condition timeout in say 10 minutes if not run successfully.

答案1

得分: 1

AFAIK,没有内置的功能来设置条件的超时。

为了解决这个问题,您可以使用以下方法,将If活动包装在Until活动中,并传递超时时间给它。

在这里,我声明了一个布尔值为false的变量。

然后将这个值传递给Until循环进行检查,并设置超时时间。

在这个If活动下,传递您的表达式进行检查,并将活动放置在If活动下。

在这里,我通过设置变量创建了一个无限循环,但当Until活动达到超时时间时,它会停止执行。

英文:

AFAIK, there is no built-in feature to pit timeout on if condition.

To resolve this, you can use below workaround by wrapping If activity with until activity by passing timeout to it.

Here I declared one variable with Boolean value false.

Azure ADF IF条件步骤的超时选项

Then pass this value to until loop to check and set a timeout to it.

Azure ADF IF条件步骤的超时选项

under this pass if activity and give your expression to check. And place your activities under if activity.

Azure ADF IF条件步骤的超时选项

here I created infinite loop with help of set variable but when until activity reach the timeout it stops the execution.

Azure ADF IF条件步骤的超时选项

huangapple
  • 本文由 发表于 2023年5月14日 22:45:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/76248068.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定