Skip to content

Commit 15ebdcd

Browse files
authored
Merge ade8ae6 into 285c5a8
2 parents 285c5a8 + ade8ae6 commit 15ebdcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/executor/workflow/instance/pause/recover/RecoverExecuteFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public RecoverExecuteFunction(CommandService commandService) {
4343
@Override
4444
public RecoverExecuteResult execute(RecoverExecuteRequest request) throws ExecuteRuntimeException {
4545
ProcessInstance workflowInstance = request.getWorkflowInstance();
46-
if (!workflowInstance.getState().isPause()) {
46+
if (!(workflowInstance.getState().isPause() || workflowInstance.getState().isStop())) {
4747
throw new ExecuteRuntimeException(
4848
String.format("The workflow instance: %s state is %s, cannot recovery", workflowInstance.getName(),
4949
workflowInstance.getState()));

0 commit comments

Comments
 (0)