Skip to main content

team_worker_key

Function team_worker_key 

Source
fn team_worker_key(
    workspace: &Arc<Workspace>,
    project: &str,
    label: &str,
) -> Option<SessionSlot>
Expand description

The team worker labelled label in project, if a LIVE entry exists - regardless of whether it has finished connecting. The caller checks connectedness to decide dispatch-vs-buffer.

A Failed entry is kept by design (its tombstone row stays visible) but is not live: the worker has no session to drain a bucket and no spawn coming to make one, so it is not a delivery target - parking for its slot is the bucket nothing drains, whose contents land as fresh turns whenever the worker is next opened.