You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a project leaves or comes back, the fleet manager waits for its running reconciles to finish before it tears down or replaces the old runtime. That wait has no time limit.
A reconcile that ignores cancellation holds the wait open forever. Every later handoff of the same cluster then waits behind it, and nothing logs which project is stuck. The manager has to restart to recover.
Outcome
The wait gives up after a set time. It logs the project and records a metric, so a stuck handoff is visible and the next handoff can proceed.
Found in review of #154, which merged with this open.
Evidence on main (ba5b6b3): ProjectRuntime.drain() in internal/manager/projects.go:77 cancels the engage context, then takes reconcileMu.Lock() in a goroutine with no deadline. stop() blocks on <-r.drain(), and unbindLocked calls stop() while holding the per-cluster engagement token, so every later Engage of that cluster name waits on it.
Activity
ecv commentedon Nov 24, 2026
Evidence on main (ba5b6b3):
ProjectRuntime.drain()ininternal/manager/projects.go:77cancels the engage context, then takesreconcileMu.Lock()in a goroutine with no deadline.stop()blocks on<-r.drain(), andunbindLockedcallsstop()while holding the per-cluster engagement token, so every later Engage of that cluster name waits on it.[-]A stuck reconcile blocks every later fleet project handoff[/-][+]One stuck reconcile blocks project handoffs[/+]