Skip to main content

KICK_DISPATCH_INTERVAL

Constant KICK_DISPATCH_INTERVAL 

Source
const KICK_DISPATCH_INTERVAL: Duration;
Expand description

Minimum gap between successive worker-kick dispatches (#259). Multi-worker teams hit Anthropic’s per-IP burst limit when all maybe_kick_worker_on_connected paths fire Command::Prompt within the same tick at boot; routing every kick through a workspace-level mpsc + a drainer task that sleeps this interval between sends spreads them out enough to avoid the burst rejection. The first kick in an empty channel fires with zero added latency; only subsequent kicks pay the sleep. Worst case at typical team sizes (7-10 workers) is ~5-7 s to fully kick the cohort, vs ~1 s pre-#259 with most kicks rejected.