Hmbown/CodeWhale · error
Fleet worker coordination state is busy; retry restart
Error message
Fleet worker {worker_id} coordination state is busy; retry restart What it means
restart_worker could not acquire the worker's coordination guard within its contention window — another operator or process is mutating the worker's coordination state — so the restart is refused and the message asks for a retry.
Solutions
- Retry restart_worker after the coordination state transitions off busy.
- Inspect the coordination record to find what holds the busy state and let that operation finish or time out.
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at crates/tui/src/fleet/manager.rs:1081 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/45e94b1b8633dd43.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/fleet/manager.rs:1081
pub fn restart_worker(&self, worker_id: &str) -> Result<FleetRestartReport> {
let state = self.ledger.rebuild_state()?;
let Some(task) = active_task_for_worker(&state, worker_id)
.or_else(|| latest_task_for_worker(&state, worker_id))
else {
bail!("worker {worker_id} has no Fleet task to restart");
};
let run = state
.runs
.get(&task.entry.run_id.0)
.ok_or_else(|| anyhow!("Fleet run {} does not exist", task.entry.run_id.0))?;
let max_workers = run
.max_workers
.unwrap_or_else(|| run.worker_specs.len().max(1))
.clamp(1, 128);
let mut coordination_guard = match &self.sub_agent_manager {
Some(manager) => {
let Ok(guard) = manager.try_write() else {
bail!("Fleet worker {worker_id} coordination state is busy; retry restart");
};
Some(guard)
}
None => None,
};
let now = timestamp();
let latest_seq = state
.latest_seq
.get(&event_key(
worker_id,
&task.entry.run_id.0,
&task.entry.task_id,
))
.copied()
.unwrap_or(0);
let heartbeat_at = state
.heartbeats
.get(worker_id)View on GitHub (pinned to 73e0f67d83)