Skip to content

Commit 388e37e

Browse files
committed
add an explanation around requeueing a bit
1 parent ad7d5dd commit 388e37e

File tree

1 file changed

+3
-1
lines changed
  • keps/sig-scheduling/4832-async-preemption

1 file changed

+3
-1
lines changed

keps/sig-scheduling/4832-async-preemption/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ To achieve an asynchronous preemption, we will change the preemption plugin's im
151151

152152
Then, afterwards the preemption goroutine makes actual API calls to delete victime Pods and set `Pod.Status.NominatedNodeName`.
153153
If the preemption goroutine fails at some point, it reverts the nomination via `AddNominatedPod` with [`clearNominatedNode`](https://github.com/kubernetes/kubernetes/blob/f5c538418189e119a8dbb60e2a2b22394548e326/pkg/scheduler/schedule_one.go#L135).
154-
If the preemption goroutine succeeds, the Pod is queued back to the queue, and (hopefully) scheduled on the nominated node.
154+
155+
If the preemption goroutine is complete, the preemption plugin ungates the Pod;
156+
the Pod is queued back to the queue with the Pod/delete event, and (hopefully) scheduled on the nominated node in the next scheduling cycle.
155157

156158
### Consideration to race condition
157159

0 commit comments

Comments
 (0)