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

Function can_start

s19_mcp_plugin/code.py:96–103  ·  view source on GitHub ↗
(task_id: str)

Source from the content-addressed store, hash-verified

94
95
96def can_start(task_id: str) -> bool:
97 task = load_task(task_id)
98 for dep_id in task.blockedBy:
99 if not _task_path(dep_id).exists():
100 return False
101 if load_task(dep_id).status != "completed":
102 return False
103 return True
104
105
106def claim_task(task_id: str, owner: str = "agent") -> str:

Callers 3

claim_taskFunction · 0.70
complete_taskFunction · 0.70
scan_unclaimed_tasksFunction · 0.70

Calls 3

existsMethod · 0.80
load_taskFunction · 0.70
_task_pathFunction · 0.70

Tested by

no test coverage detected