@@ -166,13 +166,13 @@ func (g *genericScheduler) Schedule(ctx context.Context, prof *profile.Profile,
166
166
}
167
167
168
168
// Run "prefilter" plugins.
169
+ startPredicateEvalTime := time .Now ()
169
170
preFilterStatus := prof .RunPreFilterPlugins (ctx , state , pod )
170
171
if ! preFilterStatus .IsSuccess () {
171
172
return result , preFilterStatus .AsError ()
172
173
}
173
174
trace .Step ("Running prefilter plugins done" )
174
175
175
- startPredicateEvalTime := time .Now ()
176
176
filteredNodes , filteredNodesStatuses , err := g .findNodesThatFitPod (ctx , prof , state , pod )
177
177
if err != nil {
178
178
return result , err
@@ -187,13 +187,6 @@ func (g *genericScheduler) Schedule(ctx context.Context, prof *profile.Profile,
187
187
}
188
188
}
189
189
190
- // Run "prescore" plugins.
191
- prescoreStatus := prof .RunPreScorePlugins (ctx , state , pod , filteredNodes )
192
- if ! prescoreStatus .IsSuccess () {
193
- return result , prescoreStatus .AsError ()
194
- }
195
- trace .Step ("Running prescore plugins done" )
196
-
197
190
metrics .DeprecatedSchedulingAlgorithmPredicateEvaluationSecondsDuration .Observe (metrics .SinceInSeconds (startPredicateEvalTime ))
198
191
metrics .DeprecatedSchedulingDuration .WithLabelValues (metrics .PredicateEvaluation ).Observe (metrics .SinceInSeconds (startPredicateEvalTime ))
199
192
@@ -208,6 +201,13 @@ func (g *genericScheduler) Schedule(ctx context.Context, prof *profile.Profile,
208
201
}, nil
209
202
}
210
203
204
+ // Run "prescore" plugins.
205
+ prescoreStatus := prof .RunPreScorePlugins (ctx , state , pod , filteredNodes )
206
+ if ! prescoreStatus .IsSuccess () {
207
+ return result , prescoreStatus .AsError ()
208
+ }
209
+ trace .Step ("Running prescore plugins done" )
210
+
211
211
priorityList , err := g .prioritizeNodes (ctx , prof , state , pod , filteredNodes )
212
212
if err != nil {
213
213
return result , err
0 commit comments