使用参数设置超时失败 [英] Using a parameter to set timeout fails

查看:95
本文介绍了使用参数设置超时失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个设置超时的管道的字符串参数。

I have a string parameter to a pipeline that sets the timeout.

此值用于直到活动。

doc说这是一个字符串值,可以是d.hh.mm.ss或hh.mm.ss。 如果我传入格式正确的字符串(比如'0.00:00:30'30秒),则管道无法运行并出现以下错误。

The doc says this is a string value and can be d.hh.mm.ss or hh.mm.ss.  If I pass in a correctly formatted string (say '0.00:00:30' for 30 seconds) then the pipeline fails to run with the following error.

{" code":" BadRequest"," message":"属性'timeout'的值无效,"" target" ;:" pipeline / WaitUntilOnlineOrThrow / runid / d8e05a92-c74b-4681-9316-a51e42ac16dc"," details":null," error":null}

我尝试了所有这些并且失败了:

@pipeline()。parameters.Timeout

@pipeline().parameters.Timeout

@ {pipeline()。parameters.Timeout}

@{pipeline().parameters.Timeout}

@string(pipeline()。parameters.Timeout )

@string(pipeline().parameters.Timeout)

@ string @ {string(pipeline()。parameters.Timeout)}

@string@{string(pipeline().parameters.Timeout)}

@string('0.00:00:30)

@string('0.00:00:30)

提前致谢。

Mark。

Mark.

推荐答案


您可以保留一个管道参数(比如说"重复")以与Until循环一起使用。这样的事情。您可以在Web活动执行完成后设置此参数的值 - 基于成功或失败。

You could keep a pipeline parameter (say "repeat") to use with the Until loop. Something like this. You can set the value of this parameter after your web activity execution completes - based on success or failure.


" @equals('false',
pipeline()。parameters.repeat)"


有关详细信息,请查看此示例:

Please have a look at this example for details :


https://docs.microsoft.com/en-us/azure/data-factory/control-flow-until-activity#pipeline-with-until-activity-adfv2quickstartpipelinejson

https://docs.microsoft.com/en-us/azure/data-factory/control-flow-until-activity#pipeline-with-until-activity-adfv2quickstartpipelinejson


希望这会有所帮助。

Hope this helps.


这篇关于使用参数设置超时失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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