Skip to content

Commit

Permalink
A task instance that normally queries the serial wait state.
Browse files Browse the repository at this point in the history
  • Loading branch information
WangJPLeo committed Apr 26, 2022
1 parent 84cad13 commit 167f186
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,5 +255,5 @@ int updateGlobalParamsById(@Param("globalParams") String globalParams,

boolean updateNextProcessIdById(@Param("thisInstanceId") int thisInstanceId, @Param("runningInstanceId") int runningInstanceId);

ProcessInstance loadNextProcess4Serial(@Param("processDefinitionCode") Long processDefinitionCode, @Param("state") int state);
ProcessInstance loadNextProcess4Serial(@Param("processDefinitionCode") Long processDefinitionCode, @Param("state") int state, @Param("id") int id);
}
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ private void endProcess() {
public void checkSerialProcess(ProcessDefinition processDefinition) {
int nextInstanceId = processInstance.getNextProcessInstanceId();
if (nextInstanceId == 0) {
ProcessInstance nextProcessInstance = this.processService.loadNextProcess4Serial(processInstance.getProcessDefinition().getCode(), ExecutionStatus.SERIAL_WAIT.getCode());
ProcessInstance nextProcessInstance = this.processService.loadNextProcess4Serial(processInstance.getProcessDefinition().getCode(), ExecutionStatus.SERIAL_WAIT.getCode(), processInstance.getId());
if (nextProcessInstance == null) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,5 +295,5 @@ TaskGroupQueue insertIntoTaskGroupQueue(Integer taskId,
void sendStartTask2Master(ProcessInstance processInstance, int taskId,
org.apache.dolphinscheduler.remote.command.CommandType taskType);

ProcessInstance loadNextProcess4Serial(long code, int state);
ProcessInstance loadNextProcess4Serial(long code, int state, int id);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3031,8 +3031,8 @@ public void sendStartTask2Master(ProcessInstance processInstance, int taskId,
}

@Override
public ProcessInstance loadNextProcess4Serial(long code, int state) {
return this.processInstanceMapper.loadNextProcess4Serial(code, state);
public ProcessInstance loadNextProcess4Serial(long code, int state, int id) {
return this.processInstanceMapper.loadNextProcess4Serial(code, state, id);
}

protected void deleteCommandWithCheck(int commandId) {
Expand Down

0 comments on commit 167f186

Please sign in to comment.