Skip to content

Commit

Permalink
Add podGroup status to session cache, fix the bug of repeatedly sendi…
Browse files Browse the repository at this point in the history
…ng pordGroup update request when there is no condations field.

Signed-off-by: lili <lili_9309@163.com>
  • Loading branch information
Lily922 committed Sep 14, 2023
1 parent a4d3d0d commit 984e75d
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 984e75d

Please sign in to comment.