Skip to main content

agent_bulk_stop

Function agent_bulk_stop 

Source
pub(crate) async fn agent_bulk_stop(
    state: &AppState,
    caller: &str,
    targets: Vec<String>,
    signal: Option<&str>,
    staged: Option<StagePlanInput>,
) -> Result<FleetActionResult, String>
Expand description

fleet.bulk-stop from the agent caller: its own block and its workers stop at once, every other agent’s opens the override window (pending in the answer) and stops when it runs out. A staged rollout can’t be applied to those windows (they all open at once), so it is refused when any target is another agent’s.