Skip to main content

switch_all_limited

Function switch_all_limited 

Source
pub(super) fn switch_all_limited(
    state: &AppState,
    caller: &str,
    req: &AgentAccountSwitchReq,
) -> Result<AccountSwitchAllResult, String>
Expand description

Move every agent that has a pane out of quota (a usage limit that hasn’t reset) to req.account (any with quota is chosen per agent, so each lands on an account that can run). One agent that can’t move doesn’t stop the others. req.agent_id is ignored. BLOCKING.