TECHNOLOGY

Kueue applies a suspended job’s queue and priority as one update

In this article
THE QUICK TAKE

Atomic queue-and-priority updates prevent an unintended new-priority/old-queue state while suspended jobs move between Kueue queues.

The November Kueue patch fixes a race when a suspended job changes both queue and workload priority. Previously the new priority could become visible in the old queue before the queue change was applied. The result combined values that were never intended as one scheduling request. The useful correctness question is whether every observable workload state corresponds to a coherent job configuration, including during controller updates.

Two valid fields can form an invalid transition

PR 18468 is about a race between related changes, rather than invalid priority syntax or an unknown destination queue. Both values can be individually legitimate while their temporary combination is wrong. A proposed regression fixture should therefore use valid source and destination configurations whose priorities differ. The assertion is not merely that both edits eventually appear; it is that the workload never exposes the new priority under the original queue during the handoff.

Suspension does not erase scheduling metadata

The release explicitly scopes the race to suspended jobs. Suspension may prevent execution while metadata still participates in controller and queue bookkeeping. An operational procedure should consequently avoid assuming that a stopped job is inert in every scheduling view. Capture the Workload object associated with the job as well as the job’s own fields. Looking only at whether Pods started would miss the intermediate queue and priority state this patch is designed to eliminate.

Observe coherent pairs, not separate eventual values

A qualification exercise can watch successive resource versions while issuing the combined update. For each observed version, compare the queue-priority pair with the allowed old and new pairs. Independently reading the two fields from different versions would itself manufacture a mixed observation. This is a proposed verification method, not a claim that a watch captures every internal operation. Controller tests can provide complementary evidence about the single update used to persist the related fields.

Atomic metadata is narrower than migration success

The patch prevents one inconsistent intermediate representation. It does not prove the destination queue has capacity or that the moved job will become admissible. After the metadata check, admission and execution still need separate observation under the destination policy. Release reporting should therefore distinguish a coherent queue move from successful scheduling. That avoids treating a valid but still pending job as a failed fix, or treating eventual execution as evidence that the transient metadata race never happened.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles