Skip to content

Commit

Permalink
Round 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ahg-g committed Aug 12, 2022
1 parent 47b2e8c commit 6e9e92a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/queue/cluster_queue_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ func (c *ClusterQueueImpl) DeleteFromQueue(q *Queue) {
}

func (c *ClusterQueueImpl) RequeueIfNotPresent(wInfo *workload.Info, reason RequeueReason) bool {
// By default, the only reason we don't requeue is if the workload doesn't match the CQ's
// namespace selector.
// By default, the only reason we don't requeue immediately is if the workload doesn't
// match the CQ's namespace selector.
return c.requeueIfNotPresent(wInfo, reason != RequeueReasonNamespaceMismatch)
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ func (e entryOrdering) Less(i, j int) bool {
}

func (s *Scheduler) requeueAndUpdate(log logr.Logger, ctx context.Context, e entry) {
if e.status != "" && e.requeueReason == queue.RequeueReasonGeneric {
if e.status != notNominated && e.requeueReason == queue.RequeueReasonGeneric {
// Failed after nomination is the only reason why a workload would be requeued downstream.
e.requeueReason = queue.RequeueReasonFailedAfterNomination
}
Expand Down

0 comments on commit 6e9e92a

Please sign in to comment.