未验证 提交 df185242 编写于 作者: S sparklezzz 提交者: GitHub

[Bug][Master] Global taskRetryCheckList clear conflict to killAllTasks in...

[Bug][Master] Global taskRetryCheckList clear conflict to killAllTasks in WorkflowExecuteThread (#9678)
上级 cfa68a73
......@@ -1333,6 +1333,11 @@ public class WorkflowExecuteThread implements Runnable {
}
for (int taskId : activeTaskProcessorMaps.keySet()) {
if (taskRetryCheckList.containsKey(taskId)) {
taskRetryCheckList.remove(taskId);
logger.info("task id {} removed from taskRetryCheckList", taskId);
}
TaskInstance taskInstance = processService.findTaskInstanceById(taskId);
if (taskInstance == null || taskInstance.getState().typeIsFinished()) {
continue;
......@@ -1348,10 +1353,7 @@ public class WorkflowExecuteThread implements Runnable {
}
}
if (taskRetryCheckList.size() > 0) {
this.taskRetryCheckList.clear();
this.addProcessStopEvent(processInstance);
}
this.addProcessStopEvent(processInstance);
}
public boolean workFlowFinish() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册