Skip to content

Commit 124d6aa

Browse files
Merge pull request #513 from wangyuqing4/cleanup
fix podgroup phase
2 parents 8c29a3e + 6cfe6a5 commit 124d6aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/scheduler/framework/session.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func jobStatus(ssn *Session, jobInfo *api.JobInfo) scheduling.PodGroupStatus {
174174
} else {
175175
allocated := 0
176176
for status, tasks := range jobInfo.TaskStatusIndex {
177-
if api.AllocatedStatus(status) {
177+
if api.AllocatedStatus(status) || status == api.Succeeded {
178178
allocated += len(tasks)
179179
}
180180
}

0 commit comments

Comments
 (0)