[Fix-11003]Task group queue is not updated to final state (#11004)

* fix after the task group is forced to start the task. Task group status has not changed

(cherry picked from commit d7df899909)
This commit is contained in:
Mr.An 2022-07-19 17:48:16 +08:00 committed by Jiajie Zhong
parent cfa08b3337
commit d2ea5316ad
1 changed files with 1 additions and 1 deletions

View File

@ -2955,7 +2955,7 @@ public class ProcessServiceImpl implements ProcessService {
return null;
}
try {
while (taskGroupMapper.releaseTaskGroupResource(taskGroup.getId(), taskGroup.getUseSize()
while (thisTaskGroupQueue.getForceStart() == Flag.NO.getCode() && taskGroupMapper.releaseTaskGroupResource(taskGroup.getId(), taskGroup.getUseSize()
, thisTaskGroupQueue.getId(), TaskGroupQueueStatus.ACQUIRE_SUCCESS.getCode()) != 1) {
thisTaskGroupQueue = this.taskGroupQueueMapper.queryByTaskId(taskInstance.getId());
if (thisTaskGroupQueue.getStatus() == TaskGroupQueueStatus.RELEASE) {