[英]Start Azure Datafactory (v2) Trigger
I have a ScheduleTrigger in Azure Datafactory. 我在Azure Datafactory中有一个ScheduleTrigger。 I cannot change the runtimestate to started. 我无法将运行时状态更改为已启动。 I have tried using StartWithHttpMessageAsync. 我尝试使用StartWithHttpMessageAsync。 (and what feels like all the other start commands in the API) (以及API中所有其他启动命令的感觉)
the json for the trigger looks like this: 触发器的json看起来像这样:
{
"properties": {
"type": "ScheduleTrigger",
"typeProperties": {
"recurrence": {
"frequency": "Day",
"startTime": "2017-12-15T12:00:00Z",
"endTime": "2099-12-31T00:00:00Z"
}
},
"pipelines": [
{
"pipelineReference": {
"referenceName": "DynamicFlowMaster",
"name": "StartMasterPipeline",
"type": "PipelineReference"
},
"parameters": {}
}
]
}
}
Ok, I finally answer... 好,我终于回答了...
While the documentation explicitly says: 虽然文档明确指出:
"interval": <>, // optional, how often to fire (default to 1) “ interval”:<>,//可选,触发频率(默认为1)
The Activity log in azure portal states: 天蓝色门户中的“活动”日志指出:
'The template trigger is not valid: Required property 'interval' not found in JSON. '模板触发器无效:在JSON中找不到必需的属性'interval'。
Adding the interval = 1 allowed the Client.Trigger.Start() - function to work, it previously only returned "Bad Request". 添加时间间隔= 1允许Client.Trigger.Start()-函数正常工作,它以前仅返回“错误请求”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.