pub async fn push_lanes<H: BuildHasher + Sync>(
scheduler: &StagedScheduler,
lanes: &[LanePush<'_, H>],
force: bool,
budget: u64,
windows: LaneWindows,
) -> Vec<Vec<Result<AssetPushReport, PushError>>>Expand description
Push every lane’s bundles through one device-wide UploadQueue, up to W at once per lane.
Each bundle is one job on its server’s lane, queued at its lowest planned tier. The queue
admits up to windows.sessions bundles per lane at once, lowered by the advice each server
sends and by the lane’s session_cap, serving lanes round-robin; a bundle drives its own blobs one session at a time in
ladder order, exactly as push_bundle does, so W bundles in flight are W sessions, each on
its own HTTP/1.1 connection. Every range any of them sends reserves its length against the
one budget before its bytes are read, and waits while the budget is full. A session holds
up to the lane’s P ranges in flight (windows.ranges, never more than the lane client’s own
window), lowered by the server’s advice. Each lane’s
client spends from its lane’s shared retry budget, so a failing server costs a bounded number
of retries across all of its bundles.
Returns each lane’s results in the order of its bundles. One bundle’s failure is its own: the others still run.