Skip to main content

Module default_selector

Module default_selector 

Source
Expand description

Default priority-then-FIFO selector for ready runs.

This module implements the default run selection policy for v0.1:

  • Runs are selected by priority (higher values considered higher priority)
  • Runs with the same priority are selected in FIFO order (earlier created_at first)
  • Runs with identical priority and created_at are selected by RunId for full tie-breaking

Structs§

ReadyRunSelectionInput
Selector-ready input that pairs a run with a pre-resolved snapshot priority.
SelectionResult
Result of running the default selector.

Functions§

ready_inputs_from_index
Builds selector-ready inputs from a ready index.
select_ready_runs
Default selector that picks runs by priority (descending), FIFO (ascending created_at), and finally by RunId for full ties.