Skip to main content

compute_ready_queue

Function compute_ready_queue 

Source
pub fn compute_ready_queue(
    mana_dir: &Path,
    target: &RunTarget,
    simulate: bool,
) -> Result<ReadyQueue>
Expand description

Compute which units are ready to dispatch.

Returns a ReadyQueue with units sorted by priority then critical-path weight (highest-weight first within same priority). Optionally filters to a specific unit ID or its ready children if filter_id is a parent.

Set simulate = true to include all open units with verify commands — even those whose deps are not yet met. This is the dry-run mode.