(task_id: str)
| 94 | |
| 95 | |
| 96 | def 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 | |
| 106 | def claim_task(task_id: str, owner: str = "agent") -> str: |
no test coverage detected