mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-30 03:08:01 +08:00
[FIX-#5721][master-server] Global params parameter missing (#5757)
Co-authored-by: wangxj <wangxj31>
This commit is contained in:
parent
75d61686de
commit
7a18adae52
@ -627,4 +627,8 @@ public class TaskInstance implements Serializable {
|
||||
public void setTaskParams(String taskParams) {
|
||||
this.taskParams = taskParams;
|
||||
}
|
||||
|
||||
public boolean isFirstRun() {
|
||||
return endTime == null;
|
||||
}
|
||||
}
|
||||
|
@ -520,9 +520,6 @@ public class MasterExecThread implements Runnable {
|
||||
taskInstance.setDelayTime(taskNode.getDelayTime());
|
||||
}
|
||||
|
||||
//get pre task ,get all the task varPool to this task
|
||||
Set<String> preTask = dag.getPreviousNodes(taskInstance.getName());
|
||||
getPreVarPool(taskInstance, preTask);
|
||||
return taskInstance;
|
||||
}
|
||||
|
||||
@ -1154,6 +1151,12 @@ public class MasterExecThread implements Runnable {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
//init varPool only this task is the first time running
|
||||
if (task.isFirstRun()) {
|
||||
//get pre task ,get all the task varPool to this task
|
||||
Set<String> preTask = dag.getPreviousNodes(task.getName());
|
||||
getPreVarPool(task, preTask);
|
||||
}
|
||||
DependResult dependResult = getDependResultForTask(task);
|
||||
if (DependResult.SUCCESS == dependResult) {
|
||||
if (retryTaskIntervalOverTime(task)) {
|
||||
|
Loading…
Reference in New Issue
Block a user