async fn stop_container(
state: &AppState,
block_id: &str,
before: &AgentResources,
deadline: Instant,
) -> Option<String>Expand description
Stop a container agent’s container (spec §6.7), unless another live pane runs the same agent in it. Docker’s own SIGTERM → SIGKILL grace is bounded by what’s left of the teardown’s deadline.