|
|
|
@ -648,6 +648,13 @@
|
|
|
|
|
'/docs/latest/user_doc/guide/task/' + tasktype.toLowerCase() + '.html' |
|
|
|
|
}, |
|
|
|
|
taskToBackfillItem (task) { |
|
|
|
|
let strategy = '' |
|
|
|
|
if (this.nodeData.taskType === 'DEPENDENT') { |
|
|
|
|
strategy = task.timeoutNotifyStrategy === 'WARNFAILED' ? 'WARN,FAILED' : task.timeoutNotifyStrategy |
|
|
|
|
} else { |
|
|
|
|
strategy = task.timeoutNotifyStrategy |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
code: task.code, |
|
|
|
|
conditionResult: task.taskParams.conditionResult, |
|
|
|
@ -669,7 +676,7 @@
|
|
|
|
|
taskInstancePriority: task.taskPriority, |
|
|
|
|
timeout: { |
|
|
|
|
interval: task.timeout, |
|
|
|
|
strategy: task.timeoutNotifyStrategy, |
|
|
|
|
strategy, |
|
|
|
|
enable: task.timeoutFlag === 'OPEN' |
|
|
|
|
}, |
|
|
|
|
type: task.taskType, |
|
|
|
@ -888,6 +895,7 @@
|
|
|
|
|
|
|
|
|
|
this.successBranch && (this.conditionResult.successNode[0] = this.successBranch) |
|
|
|
|
this.failedBranch && (this.conditionResult.failedNode[0] = this.failedBranch) |
|
|
|
|
|
|
|
|
|
this.$emit('addTaskInfo', { |
|
|
|
|
item: { |
|
|
|
|
code: this.nodeData.id, |
|
|
|
@ -907,7 +915,7 @@
|
|
|
|
|
failRetryTimes: this.maxRetryTimes, |
|
|
|
|
failRetryInterval: this.retryInterval, |
|
|
|
|
timeoutFlag: this.timeout.enable ? 'OPEN' : 'CLOSE', |
|
|
|
|
timeoutNotifyStrategy: this.timeout.strategy, |
|
|
|
|
timeoutNotifyStrategy: this.timeout.strategy.indexOf(',') > 0 ? 'WARNFAILED' : this.timeout.strategy, |
|
|
|
|
timeout: this.timeout.interval || 0, |
|
|
|
|
delayTime: this.delayTime, |
|
|
|
|
environmentCode: this.environmentCode || -1, |
|
|
|
|