Skip to main content

admit_start_without_eviction

Function admit_start_without_eviction 

Source
pub(crate) async fn admit_start_without_eviction(
    state: &AppState,
    agent_id: &str,
) -> Result<(), String>
Expand description

admit_start for a start that must not cost another agent its process (restart resume): over a limit it is refused with Err("capacity: ...") where admit_start would stop an idle agent to make room. The check and the claim of the room are one step under the admission lock.