-
Stefy Lanza (nextime / spora ) authored
v0.4.46's sweep loops "while _adopt_shared_pod() adopts something". find_shared_pod knew nothing of the pool calling it, so it returned the same pod every iteration; _add_pod ignored the duplicate, the call still returned True, and the sweep never reached the next candidate. Live, on the deploy that introduced it: one pod "adopted" 15-18 times in a second and four pods left untracked behind it, each wasted pass costing up to two 15-second probes inside the maintenance loop. find_shared_pod now takes the caller's own pod ids and skips them, and adoption reports True only for a pod the pool did not already hold. Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KnfkxBpcZ1v6ypRFFyhrVM
b8e5262c