Merge "Check node is unallocated before max-ready clean"

This commit is contained in:
Zuul 2024-10-10 17:52:45 +00:00 committed by Gerrit Code Review
commit 0ee4b06199

View File

@ -759,7 +759,7 @@ class CleanupWorker(BaseCleanupWorker):
# Double check the state now that we have a lock since it
# may have changed on us.
if node.state != zk.READY:
if node.state != zk.READY or node.allocated_to:
zk_conn.unlockNode(node)
continue