每分钟触发器激活失败。状态响应:400 Bad Request [英] Trigger activation failed for Every Minute. Response with status: 400 Bad Request
本文介绍了每分钟触发器激活失败。状态响应:400 Bad Request的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在正常工作时间内每分钟运行一次ADF触发器。 只要我添加"时间表",对于代码,我得到"每分钟触发器激活失败"。状态响应:400 Bad Request"
I am trying to run my ADF trigger every minute during our normal business hours. As soon as I add the "schedule" to the code, I get "Trigger activation failed for Every Minute. Response with status: 400 Bad Request"
"type": "ScheduleTrigger",
"typeProperties": {
"recurrence": {
"frequency": "Minute",
"interval": 1,
"startTime": "2019-02-01T22:00:00.000Z",
"timeZone": "UTC",
"schedule": {
"hours": [
0,
1,
2,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23
]
}
}
}
任何帮助都将不胜感激。
Any help would be appreciated.
推荐答案
嗨Chris,
尝试删除代码中的"Schedule"部分并重新尝试应该有效。
< span style ="font-size:10.0pt;行高:107%; font-family:'Verdana',sans-serif"> OR
OR
尝试将以下代码用于main方法,该方法创建并启动每1分钟运行一次的scheduleke触发器。
{
"properties": {
"name":"MyTrigger",
"type":"ScheduleTrigger",
"typeProperties": {
"recurrence": {
"frequency":"Minute",
"interval": 1,
"startTime":"2019-2-08T00:00:00",
"endTime": "2019-2-08T01:00:00"
}
},
"pipelines": [{
"pipelineReference":
{
"type":"PipelineReference",
"referenceName":"Adfv2QuickStartPipeline"
},
"parameters": {
"inputPath":"adftutorial/input",
"outputPath":"adftutorial/output"
}
}
]
}
}
有关详细信息,请参阅"创建一个按计划运行管道
的触发器"。
For more details, refer "Create a trigger that runs a pipeline on a schedule".
希望这会有所帮助。
这篇关于每分钟触发器激活失败。状态响应:400 Bad Request的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文