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

Method complete_task

core/state.py:262–269  ·  view source on GitHub ↗

Mark a task as completed.

(self, task_id: int, result: str = None)

Source from the content-addressed store, hash-verified

260 self._conn.commit()
261
262 def complete_task(self, task_id: int, result: str = None):
263 """Mark a task as completed."""
264 with self._lock:
265 self._conn.execute(
266 "UPDATE task_queue SET status = 'done', result = ?, completed_at = ? WHERE id = ?",
267 (result, int(time.time()), task_id),
268 )
269 self._conn.commit()
270
271 def fail_task(self, task_id: int, error: str):
272 """Mark a task as failed."""

Callers 1

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected