Browse Source

fix fault tolerant enviroment missing (#14735)

3.2.1-prepare
JieguangZhou 1 year ago committed by GitHub
parent
commit
8e64026e93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java

9
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java

@ -1292,10 +1292,13 @@ public class WorkflowExecuteRunnable implements IWorkflowExecuteRunnable {
Optional<TaskInstance> existTaskInstanceOptional = getTaskInstance(taskNodeObject.getCode());
if (existTaskInstanceOptional.isPresent()) {
TaskInstance existTaskInstance = existTaskInstanceOptional.get();
if (existTaskInstance.getState() == TaskExecutionStatus.RUNNING_EXECUTION
|| existTaskInstance.getState() == TaskExecutionStatus.DISPATCH) {
TaskExecutionStatus state = existTaskInstance.getState();
if (state == TaskExecutionStatus.RUNNING_EXECUTION
|| state == TaskExecutionStatus.DISPATCH
|| state == TaskExecutionStatus.SUBMITTED_SUCCESS) {
// try to take over task instance
if (tryToTakeOverTaskInstance(existTaskInstance)) {
if (state != TaskExecutionStatus.SUBMITTED_SUCCESS
&& tryToTakeOverTaskInstance(existTaskInstance)) {
log.info("Success take over task {}", existTaskInstance.getName());
continue;
} else {

Loading…
Cancel
Save