Skip to main content

finalize_runner_exact

Function finalize_runner_exact 

Source
pub async fn finalize_runner_exact(
    runners: &Arc<RwLock<HashMap<String, AgentRunner>>>,
    session_id: &str,
    run_id: &str,
    result: &Result<(), AgentError>,
) -> bool
Expand description

Finalize only the exact reserved runner.

Registration collisions can expose a stale caller after another entry point has become authoritative. That caller must release its own slot without ever terminalizing a newer runner stored under the same session id.