Browse Source

[fix-#14086]The subprocess type node is always in the ready stop state (#14087)

3.0.6-release
fuchanghai 2 years ago committed by GitHub
parent
commit
a626b4ccce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/SubTaskProcessor.java

4
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/SubTaskProcessor.java

@ -163,7 +163,7 @@ public class SubTaskProcessor extends BaseTaskProcessor {
private boolean pauseSubWorkFlow() {
ProcessInstance subProcessInstance = processService.findSubProcessInstance(processInstance.getId(), taskInstance.getId());
if (subProcessInstance == null || taskInstance.getState().typeIsFinished()) {
if (subProcessInstance == null || taskInstance.getState().typeIsFinished() || subProcessInstance.getState().typeIsFinished()) {
return false;
}
subProcessInstance.setState(ExecutionStatus.READY_PAUSE);
@ -198,7 +198,7 @@ public class SubTaskProcessor extends BaseTaskProcessor {
@Override
protected boolean killTask() {
ProcessInstance subProcessInstance = processService.findSubProcessInstance(processInstance.getId(), taskInstance.getId());
if (subProcessInstance == null || taskInstance.getState().typeIsFinished()) {
if (subProcessInstance == null || taskInstance.getState().typeIsFinished() || subProcessInstance.getState().typeIsFinished()) {
return false;
}
subProcessInstance.setState(ExecutionStatus.READY_STOP);

Loading…
Cancel
Save