fix(swarm-worker): isolate session to /tmp/tmux-muse.sock and filter terminal slots in poller
This commit is contained in:
@@ -110,6 +110,8 @@ def find_pending_slots(stale_minutes=STALE_MINUTES):
|
||||
created_ts = swarm.get("created_ts") or summary.get("created_ts")
|
||||
for slot in swarm.get("slots", []):
|
||||
status = (slot.get("status") or "").lower()
|
||||
if status in ("done", "failed", "killed"):
|
||||
continue
|
||||
result = slot.get("result")
|
||||
agent = slot.get("agent_id")
|
||||
pending = (status == "pending") or (not agent)
|
||||
|
||||
Reference in New Issue
Block a user