Skip to content

Commit

Permalink
Merge pull request volcano-sh#3081 from wangyang0616/fix_pg_status_up…
Browse files Browse the repository at this point in the history
…date

The status of a pod group is updated only when the pod group changes.
  • Loading branch information
volcano-sh-bot authored Aug 28, 2023
2 parents 92df2af + 20d1abf commit b95d0f1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/scheduler/framework/job_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ import (

const (
jobUpdaterWorker = 16

jobConditionUpdateTime = time.Minute
jobConditionUpdateTimeJitter = 30 * time.Second
)

// TimeJitterAfter means: new after old + duration + jitter
Expand Down Expand Up @@ -61,9 +58,6 @@ func isPodGroupConditionsUpdated(newCondition, oldCondition []scheduling.PodGrou

newTime := newCond.LastTransitionTime
oldTime := oldCond.LastTransitionTime
if TimeJitterAfter(newTime.Time, oldTime.Time, jobConditionUpdateTime, jobConditionUpdateTimeJitter) {
return true
}

// if newCond is not new enough, we treat it the same as the old one
newCond.LastTransitionTime = oldTime
Expand Down

0 comments on commit b95d0f1

Please sign in to comment.