|
|
@ -121,6 +121,7 @@ |
|
|
|
<m-shell |
|
|
|
<m-shell |
|
|
|
v-if="taskType === 'SHELL'" |
|
|
|
v-if="taskType === 'SHELL'" |
|
|
|
@on-params="_onParams" |
|
|
|
@on-params="_onParams" |
|
|
|
|
|
|
|
@on-cache-params="_onCacheParams" |
|
|
|
ref="SHELL" |
|
|
|
ref="SHELL" |
|
|
|
:backfill-item="backfillItem"> |
|
|
|
:backfill-item="backfillItem"> |
|
|
|
</m-shell> |
|
|
|
</m-shell> |
|
|
@ -128,6 +129,7 @@ |
|
|
|
<m-sub-process |
|
|
|
<m-sub-process |
|
|
|
v-if="taskType === 'SUB_PROCESS'" |
|
|
|
v-if="taskType === 'SUB_PROCESS'" |
|
|
|
@on-params="_onParams" |
|
|
|
@on-params="_onParams" |
|
|
|
|
|
|
|
@on-cache-params="_onCacheParams" |
|
|
|
@on-set-process-name="_onSetProcessName" |
|
|
|
@on-set-process-name="_onSetProcessName" |
|
|
|
ref="SUB_PROCESS" |
|
|
|
ref="SUB_PROCESS" |
|
|
|
:backfill-item="backfillItem"> |
|
|
|
:backfill-item="backfillItem"> |
|
|
@ -136,6 +138,7 @@ |
|
|
|
<m-procedure |
|
|
|
<m-procedure |
|
|
|
v-if="taskType === 'PROCEDURE'" |
|
|
|
v-if="taskType === 'PROCEDURE'" |
|
|
|
@on-params="_onParams" |
|
|
|
@on-params="_onParams" |
|
|
|
|
|
|
|
@on-cache-params="_onCacheParams" |
|
|
|
ref="PROCEDURE" |
|
|
|
ref="PROCEDURE" |
|
|
|
:backfill-item="backfillItem"> |
|
|
|
:backfill-item="backfillItem"> |
|
|
|
</m-procedure> |
|
|
|
</m-procedure> |
|
|
@ -167,6 +170,7 @@ |
|
|
|
<m-mr |
|
|
|
<m-mr |
|
|
|
v-if="taskType === 'MR'" |
|
|
|
v-if="taskType === 'MR'" |
|
|
|
@on-params="_onParams" |
|
|
|
@on-params="_onParams" |
|
|
|
|
|
|
|
@on-cache-params="_onCacheParams" |
|
|
|
ref="MR" |
|
|
|
ref="MR" |
|
|
|
:backfill-item="backfillItem"> |
|
|
|
:backfill-item="backfillItem"> |
|
|
|
</m-mr> |
|
|
|
</m-mr> |
|
|
@ -174,6 +178,7 @@ |
|
|
|
<m-python |
|
|
|
<m-python |
|
|
|
v-if="taskType === 'PYTHON'" |
|
|
|
v-if="taskType === 'PYTHON'" |
|
|
|
@on-params="_onParams" |
|
|
|
@on-params="_onParams" |
|
|
|
|
|
|
|
@on-cache-params="_onCacheParams" |
|
|
|
ref="PYTHON" |
|
|
|
ref="PYTHON" |
|
|
|
:backfill-item="backfillItem"> |
|
|
|
:backfill-item="backfillItem"> |
|
|
|
</m-python> |
|
|
|
</m-python> |
|
|
@ -181,6 +186,7 @@ |
|
|
|
<m-dependent |
|
|
|
<m-dependent |
|
|
|
v-if="taskType === 'DEPENDENT'" |
|
|
|
v-if="taskType === 'DEPENDENT'" |
|
|
|
@on-dependent="_onDependent" |
|
|
|
@on-dependent="_onDependent" |
|
|
|
|
|
|
|
@on-cache-dependent="_onCacheDependent" |
|
|
|
ref="DEPENDENT" |
|
|
|
ref="DEPENDENT" |
|
|
|
:backfill-item="backfillItem"> |
|
|
|
:backfill-item="backfillItem"> |
|
|
|
</m-dependent> |
|
|
|
</m-dependent> |
|
|
@ -248,6 +254,8 @@ |
|
|
|
resourcesList: [], |
|
|
|
resourcesList: [], |
|
|
|
// dependence |
|
|
|
// dependence |
|
|
|
dependence: {}, |
|
|
|
dependence: {}, |
|
|
|
|
|
|
|
// cache dependence |
|
|
|
|
|
|
|
cacheDependence: {}, |
|
|
|
// Current node params data |
|
|
|
// Current node params data |
|
|
|
params: {}, |
|
|
|
params: {}, |
|
|
|
// Running sign |
|
|
|
// Running sign |
|
|
@ -283,6 +291,12 @@ |
|
|
|
_onDependent (o) { |
|
|
|
_onDependent (o) { |
|
|
|
this.dependence = Object.assign(this.dependence, {}, o) |
|
|
|
this.dependence = Object.assign(this.dependence, {}, o) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* cache dependent |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
_onCacheDependent (o) { |
|
|
|
|
|
|
|
this.cacheDependence = Object.assign(this.cacheDependence, {}, o) |
|
|
|
|
|
|
|
}, |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Task timeout alarm |
|
|
|
* Task timeout alarm |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -356,9 +370,10 @@ |
|
|
|
type: this.taskType, |
|
|
|
type: this.taskType, |
|
|
|
id: this.id, |
|
|
|
id: this.id, |
|
|
|
name: this.name, |
|
|
|
name: this.name, |
|
|
|
|
|
|
|
params: this.params, |
|
|
|
description: this.description, |
|
|
|
description: this.description, |
|
|
|
runFlag: this.runFlag, |
|
|
|
runFlag: this.runFlag, |
|
|
|
dependence: this.dependence, |
|
|
|
dependence: this.cacheDependence, |
|
|
|
maxRetryTimes: this.maxRetryTimes, |
|
|
|
maxRetryTimes: this.maxRetryTimes, |
|
|
|
retryInterval: this.retryInterval, |
|
|
|
retryInterval: this.retryInterval, |
|
|
|
timeout: this.timeout, |
|
|
|
timeout: this.timeout, |
|
|
@ -522,6 +537,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
this.params = o.params || {} |
|
|
|
this.params = o.params || {} |
|
|
|
this.dependence = o.dependence || {} |
|
|
|
this.dependence = o.dependence || {} |
|
|
|
|
|
|
|
this.cacheDependence = o.dependence || {} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
this.isContentBox = true |
|
|
|
this.isContentBox = true |
|
|
@ -551,7 +567,7 @@ |
|
|
|
name: this.name, |
|
|
|
name: this.name, |
|
|
|
description: this.description, |
|
|
|
description: this.description, |
|
|
|
runFlag: this.runFlag, |
|
|
|
runFlag: this.runFlag, |
|
|
|
dependence: this.dependence, |
|
|
|
dependence: this.cacheDependence, |
|
|
|
maxRetryTimes: this.maxRetryTimes, |
|
|
|
maxRetryTimes: this.maxRetryTimes, |
|
|
|
retryInterval: this.retryInterval, |
|
|
|
retryInterval: this.retryInterval, |
|
|
|
timeout: this.timeout, |
|
|
|
timeout: this.timeout, |
|
|
|