Browse Source

[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)
3.0.0/version-upgrade
Mr.An 2 years ago committed by Jiajie Zhong
parent
commit
d2ea5316ad
  1. 2
      dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessServiceImpl.java

2
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessServiceImpl.java

@ -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) {

Loading…
Cancel
Save