mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-30 03:08:01 +08:00
Serial wait for subsequent execution (#9847)
This commit is contained in:
parent
4f2b9ac886
commit
31cd1b5e61
@ -21,6 +21,7 @@ import org.apache.dolphinscheduler.common.Constants;
|
||||
import org.apache.dolphinscheduler.common.enums.SlotCheckState;
|
||||
import org.apache.dolphinscheduler.common.thread.Stopper;
|
||||
import org.apache.dolphinscheduler.common.thread.ThreadUtils;
|
||||
import org.apache.dolphinscheduler.common.utils.JSONUtils;
|
||||
import org.apache.dolphinscheduler.common.utils.NetUtils;
|
||||
import org.apache.dolphinscheduler.common.utils.OSUtils;
|
||||
import org.apache.dolphinscheduler.dao.entity.Command;
|
||||
|
@ -837,7 +837,9 @@ public class WorkflowExecuteThread {
|
||||
cmdParam.put(CMD_PARAM_RECOVER_PROCESS_ID_STRING, nextInstanceId);
|
||||
Command command = new Command();
|
||||
command.setCommandType(CommandType.RECOVER_SERIAL_WAIT);
|
||||
command.setProcessInstanceId(nextProcessInstance.getId());
|
||||
command.setProcessDefinitionCode(processDefinition.getCode());
|
||||
command.setProcessDefinitionVersion(processDefinition.getVersion());
|
||||
command.setCommandParam(JSONUtils.toJsonString(cmdParam));
|
||||
processService.createCommand(command);
|
||||
}
|
||||
|
@ -49,7 +49,8 @@ public enum CommandType {
|
||||
REPEAT_RUNNING(7, "repeat running a process"),
|
||||
PAUSE(8, "pause a process"),
|
||||
STOP(9, "stop a process"),
|
||||
RECOVER_WAITING_THREAD(10, "recover waiting thread");
|
||||
RECOVER_WAITING_THREAD(10, "recover waiting thread"),
|
||||
RECOVER_SERIAL_WAIT(11, "recover serial wait");
|
||||
|
||||
CommandType(int code, String descp) {
|
||||
this.code = code;
|
||||
|
Loading…
Reference in New Issue
Block a user