MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / get_task

Method get_task

core/state.py:197–202  ·  view source on GitHub ↗

Get a task by ID.

(self, task_id: int)

Source from the content-addressed store, hash-verified

195 return cur.lastrowid
196
197 def get_task(self, task_id: int) -> Optional[Dict]:
198 """Get a task by ID."""
199 with self._lock:
200 cur = self._conn.execute("SELECT * FROM task_queue WHERE id = ?", (task_id,))
201 row = cur.fetchone()
202 return dict(row) if row else None
203
204 def get_next_pending(self) -> Optional[Dict]:
205 """Get the next pending task whose dependencies are all done (oldest first).

Callers 4

cancel_taskMethod · 0.95
_handle_taskMethod · 0.45
_handle_cancelMethod · 0.45

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected