From 20d1abf849b266e22242e90b045361af71b7f93b Mon Sep 17 00:00:00 2001 From: w00568049 Date: Sun, 27 Aug 2023 16:13:12 +0800 Subject: [PATCH] The status is updated in a timely manner when the pod group changes. The status is not updated when the pod group does not change. Signed-off-by: w00568049 --- pkg/scheduler/framework/job_updater.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/scheduler/framework/job_updater.go b/pkg/scheduler/framework/job_updater.go index 5add4d9301..2b90b81e6c 100644 --- a/pkg/scheduler/framework/job_updater.go +++ b/pkg/scheduler/framework/job_updater.go @@ -15,9 +15,6 @@ import ( const ( jobUpdaterWorker = 16 - - jobConditionUpdateTime = time.Minute - jobConditionUpdateTimeJitter = 30 * time.Second ) // TimeJitterAfter means: new after old + duration + jitter @@ -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