Browse Source

cherry-pick [improve-#13045] after a submit failure, stop the processInstance to avoid an endless loop

#13051
3.1.9-release
fuchanghai 2 years ago committed by zhuangchong
parent
commit
ff5fecdfd5
  1. 2
      dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/event/WorkflowStartEventHandler.java

2
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/event/WorkflowStartEventHandler.java

@ -71,7 +71,7 @@ public class WorkflowStartEventHandler implements WorkflowEventHandler {
}
} else if (WorkflowSubmitStatue.FAILED == workflowSubmitStatue) {
logger.error(
"Failed to submit the workflow instance, will resend the workflow start event: {}",
"Failed to submit the workflow instance, will resend the workflow start event: {}",
workflowEvent);
WorkflowStateEvent stateEvent = WorkflowStateEvent.builder()
.processInstanceId(processInstance.getId())

Loading…
Cancel
Save