diff --git a/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java b/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java index 4258b672dc..1564adbc14 100644 --- a/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java +++ b/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java @@ -732,8 +732,9 @@ public class WorkflowExecuteRunnable implements Callable { command.setProcessInstanceId(0); command.setProcessDefinitionVersion(processInstance.getProcessDefinitionVersion()); command.setTestFlag(processInstance.getTestFlag()); + int create = commandService.createCommand(command); processService.saveCommandTrigger(command.getId(), processInstance.getId()); - return commandService.createCommand(command); + return create; } private boolean needComplementProcess() {