未验证 提交 78856fb0 编写于 作者: _和's avatar _和 提交者: GitHub

remove the duplicate function in MasterExecThread (#3329)

Co-authored-by: Nsunchaohe <sunzhaohe@linklogis.com>
上级 afeeb34d
......@@ -802,7 +802,7 @@ public class MasterExecThread implements Runnable {
ProcessInstance instance = processService.findProcessInstanceById(processInstance.getId());
ExecutionStatus state = instance.getState();
if(activeTaskNode.size() > 0 || retryTaskExists()){
if(activeTaskNode.size() > 0 || hasRetryTaskInStandBy()){
// active task and retry task exists
return runningState(state);
}
......@@ -852,24 +852,6 @@ public class MasterExecThread implements Runnable {
return state;
}
/**
* whether standby task list have retry tasks
* @return
*/
private boolean retryTaskExists() {
boolean result = false;
for(String taskName : readyToSubmitTaskList.keySet()){
TaskInstance task = readyToSubmitTaskList.get(taskName);
if(task.getState().typeIsFailure()){
result = true;
break;
}
}
return result;
}
/**
* whether complement end
* @return Boolean whether is complement end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册