stantheman0128 commented on code in PR #1125:
URL: https://github.com/apache/yunikorn-core/pull/1125#discussion_r3773563346
##########
pkg/scheduler/objects/preemption.go:
##########
@@ -88,37 +88,39 @@ func NewPreemptor(application *Application, headRoom
*resources.Resource, preemp
}
// CheckPreconditions performs simple sanity checks designed to determine if
preemption should be attempted
-// for an ask. If checks succeed, updates the ask preemption check time.
-func (p *Preemptor) CheckPreconditions() bool {
+// for an ask. If checks succeed, updates the ask preemption check time. The
checks only depend on the ask
+// and the preemption delay, so they run before a Preemptor is built to keep
that allocation off the path
+// taken by asks that cannot preempt anyway.
Review Comment:
Reverted to the original comment. The only change left in that block is the
signature line. Force-pushed as 4817d6e.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]