fix can't stop bug (#15191)

Co-authored-by: Leoric Yue <leoric.yue@zoom.us>
This commit is contained in:
Dyqer 2023-11-20 21:02:44 +08:00 committed by GitHub
parent 9be81be328
commit cca1c4a172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -63,10 +63,13 @@ public class WorkflowStateEventHandler implements StateEventHandler {
}
workflowExecuteRunnable.endProcess();
}
if (processInstance.getState().isReadyStop()) {
workflowExecuteRunnable.killAllTasks();
}
if (workflowStateEvent.getStatus().isReadyStop()) {
workflowExecuteRunnable.refreshProcessInstance(processInstance.getId());
if (processInstance.getState().isReadyStop()) {
workflowExecuteRunnable.killAllTasks();
}
}
return true;
}