Skip to content

Commit

Permalink
Merge pull request #3125 from Lily922/release-1.8
Browse files Browse the repository at this point in the history
[cherry-pick for release-1.8]Add podGroup status to session cache, fix the bug of repeatedly sending pordGroup update request when there is no condations field.
  • Loading branch information
volcano-sh-bot authored Sep 14, 2023
2 parents a4d3d0d + a716b55 commit 32fb107
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/scheduler/framework/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ func openSession(cache cache.Cache) *Session {

ssn.Jobs = snapshot.Jobs
for _, job := range ssn.Jobs {
// only conditions will be updated periodically
if job.PodGroup != nil && job.PodGroup.Status.Conditions != nil {
if job.PodGroup != nil {
ssn.podGroupStatus[job.UID] = *job.PodGroup.Status.DeepCopy()
}

Expand Down

0 comments on commit 32fb107

Please sign in to comment.