Skip to content

Commit

Permalink
fix can't stop bug (apache#15191)
Browse files Browse the repository at this point in the history
Co-authored-by: Leoric Yue <[email protected]>
  • Loading branch information
Dyqer and Leoric Yue authored Nov 20, 2023
1 parent 9be81be commit cca1c4a
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ public boolean handleStateEvent(WorkflowExecuteRunnable workflowExecuteRunnable,
}
workflowExecuteRunnable.endProcess();
}
if (processInstance.getState().isReadyStop()) {
workflowExecuteRunnable.killAllTasks();
}

if (workflowStateEvent.getStatus().isReadyStop()) {
workflowExecuteRunnable.refreshProcessInstance(processInstance.getId());
if (processInstance.getState().isReadyStop()) {
workflowExecuteRunnable.killAllTasks();
}
}
return true;
}

Expand Down

0 comments on commit cca1c4a

Please sign in to comment.