Skip to content

Commit

Permalink
Make sure pending workloads are removed from the cache
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed Jan 31, 2024
1 parent 0b0961d commit a65e70c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/controller/core/workload_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,8 @@ func (r *WorkloadReconciler) Delete(e event.DeleteEvent) bool {

// Even if the state is unknown, the last cached state tells us whether the
// workload was in the queues and should be cleared from them.
if workload.HasQuotaReservation(wl) {
r.queues.DeleteWorkload(wl)
}
r.queues.DeleteWorkload(wl)

return true
}

Expand Down

0 comments on commit a65e70c

Please sign in to comment.