无法获得高级计划触发器 [英] Can't get an advanced schedule trigger to work
问题描述
我正在尝试创建一个高级计划触发器,请执行以下操作: https://docs.microsoft.com/en-us/azure / data-factory / concepts-pipeline-execution-triggers#schedule-trigger-definition
我所做的时间表如下。我想让它在20-21小时之间每隔30分钟运行一次。所以我想它应该运行4次。
但是当我发布管道时,我得到:
触发激活错误
我确实把你的调度逻辑放到我现有的管道中,我能够毫无问题地发布。此时我认为问题出在管道本身上。请尝试手动运行管道并检查它是否成功 。
我的JSON看起来像这样:
{
" name" ;:\"Adfv2TutorialBlobToSqlCopy&\",,,
"properties":{
"活动":[
{
"名称" ;:" CopyFromBlobToBlob" ;,
                "类型" ;:"复制和QUOT ;,
                "政策" ;: {
                     "超时" ;:" 7.00:00:00" ;,
                     "重试" ;: 0,
                 &NBSP ;  " retryIntervalInSeconds" ;: 30,
                 &NBSP ;  " secureOutput" ;:假,
                 &NBSP ;  " secureInput":false
},b $ b " typeProperties" ;: {
                     "源" ;: {
                         "类型" ;:" BlobSource" ;,
                         "递归" ;:真
                     },&
"水槽" ;: {
                         "类型" ;:" BlobSink"
                &NBSP ;   },
                    " enableStaging" ;: false
},b $ b "输入" ;: [
                     {
                    &NBSP ;   "引用名称" ;:" BlobDataset" ;,
                         "类型" ;:" DatasetReference" ;,
                         "参数" ;: {
                             "路径" ;:" @pipeline()parameters.inputPath"
                         }
}
],$
"输出" ;: [
                     {
                    &NBSP ;   "引用名称" ;:" BlobDataset" ;,
                         "类型" ;:" DatasetReference" ;,
                         "参数" ;: {
                             "路径" ;:" @pipeline()parameters.outputPath"
                         }
}
]¥b $ b }
],$
"参数":{
"inputPath":{
"type":" String"
},b $ b " outputPath" ;: {
"type":" String"
}
}
},...
" type":" ScheduleTrigger",
" typeProperties":{
"重复发生":{
"频率":"分钟","
" interval":1,
" STARTTIME" ;:" 2019-02-25T16:23:00.000Z" ;,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; "timeZone":" UTC",< b&b "schedule":{
"分钟" ;: [
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP; 0,
30
],$
"小时" ;: [
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP; 20,
21
],$
"平日" ;: [
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP; "星期一" ;,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ; "星期二" ;,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ; "星期三" ;,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ; "周四" ;,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ; "星期五"和"
]¥b $ b }
}
}¥b $ b}
Hi,
I'm trying to create an advanced schedule trigger, following this: https://docs.microsoft.com/en-us/azure/data-factory/concepts-pipeline-execution-triggers#schedule-trigger-definition
The schedule I have made is below. I wanted to have it running every 30 min between hours 20-21. So I guess it should run 4 times.
But as soon as I publish the pipeline I get:
Hi ,
I did put your scheduling logic into my existing pipeline and I was able to publish without issues . At this time I think the issue is on the pipeline itself . Please try to run the pipeline manually and check it that succeeds .
My JSON looks something like this :
{
"name": "Adfv2TutorialBlobToSqlCopy",
"properties": {
"activities": [
{
"name": "CopyFromBlobToBlob",
"type": "Copy",
"policy": {
"timeout": "7.00:00:00",
"retry": 0,
"retryIntervalInSeconds": 30,
"secureOutput": false,
"secureInput": false
},
"typeProperties": {
"source": {
"type": "BlobSource",
"recursive": true
},
"sink": {
"type": "BlobSink"
},
"enableStaging": false
},
"inputs": [
{
"referenceName": "BlobDataset",
"type": "DatasetReference",
"parameters": {
"path": "@pipeline().parameters.inputPath"
}
}
],
"outputs": [
{
"referenceName": "BlobDataset",
"type": "DatasetReference",
"parameters": {
"path": "@pipeline().parameters.outputPath"
}
}
]
}
],
"parameters": {
"inputPath": {
"type": "String"
},
"outputPath": {
"type": "String"
}
}
},
"type": "ScheduleTrigger",
"typeProperties": {
"recurrence": {
"frequency": "Minute",
"interval": 1,
"startTime": "2019-02-25T16:23:00.000Z",
"timeZone": "UTC",
"schedule": {
"minutes": [
0,
30
],
"hours": [
20,
21
],
"weekDays": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
]
}
}
}
}
这篇关于无法获得高级计划触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!