Skip to content

Commit

Permalink
Merge branch 'fix-2' into 'master'
Browse files Browse the repository at this point in the history
adjust PG Phase

job  status is Running

![image](/uploads/2d27e5f9e395704f6fbe8dfd8e4a146a/image.png)

but PG phase is Pending

![image](/uploads/436a7769434af6b239178d0077706bc7/image.png)

job and PG don't match.


<br/>

because PG only has 3 phase, so i only add Succeeded task case~

![image](/uploads/33954aa2840a86f6621650983d0606d6/image.png)





See merge request CBU-PaaS/Community/volcano/volcano!100
  • Loading branch information
mada 00483107 committed Apr 20, 2019
2 parents 96a8c7c + 1289b0c commit 8b8ec84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scheduler/framework/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func jobStatus(ssn *Session, jobInfo *api.JobInfo) v1alpha1.PodGroupStatus {
} else {
allocated := 0
for status, tasks := range jobInfo.TaskStatusIndex {
if api.AllocatedStatus(status) {
if api.AllocatedStatus(status) || status == api.Succeeded {
allocated += len(tasks)
}
}
Expand Down

0 comments on commit 8b8ec84

Please sign in to comment.