MCPcopy Index your code
hub / github.com/shareAI-lab/learn-claude-code / scan_unclaimed_tasks

Function scan_unclaimed_tasks

s19_mcp_plugin/code.py:393–401  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

391
392
393def scan_unclaimed_tasks() -> list[dict]:
394 unclaimed = []
395 for f in sorted(TASKS_DIR.glob("task_*.json")):
396 task = json.loads(f.read_text())
397 if (task.get("status") == "pending"
398 and not task.get("owner")
399 and can_start(task["id"])):
400 unclaimed.append(task)
401 return unclaimed
402
403
404def idle_poll(agent_name: str, messages: list,

Callers 1

idle_pollFunction · 0.70

Calls 2

can_startFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected