Update WorkflowExecuteRunnable.java (#13155)
This commit is contained in:
parent
9df89cf0cf
commit
d64004abea
|
|
@ -445,13 +445,13 @@ public class WorkflowExecuteRunnable implements Callable<WorkflowSubmitStatue> {
|
|||
retryTaskInstance(taskInstance);
|
||||
} else if (taskInstance.getState().isFailure()) {
|
||||
completeTaskMap.put(taskInstance.getTaskCode(), taskInstance.getId());
|
||||
errorTaskMap.put(taskInstance.getTaskCode(), taskInstance.getId());
|
||||
// There are child nodes and the failure policy is: CONTINUE
|
||||
if (processInstance.getFailureStrategy() == FailureStrategy.CONTINUE && DagHelper.haveAllNodeAfterNode(
|
||||
Long.toString(taskInstance.getTaskCode()),
|
||||
dag)) {
|
||||
submitPostNode(Long.toString(taskInstance.getTaskCode()));
|
||||
} else {
|
||||
errorTaskMap.put(taskInstance.getTaskCode(), taskInstance.getId());
|
||||
if (processInstance.getFailureStrategy() == FailureStrategy.END) {
|
||||
killAllTasks();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue