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

Method mark_failed

core/taskqueue.py:64–70  ·  view source on GitHub ↗
(self, task_id, error='')

Source from the content-addressed store, hash-verified

62 self.save()
63
64 def mark_failed(self, task_id, error=''):
65 for t in self.tasks:
66 if t.id == task_id:
67 t.status = STATUS_FAILED
68 t.error = error[:300]
69 break
70 self.save()
71
72 def is_complete(self):
73 return all(t.status in (STATUS_DONE, STATUS_SKIPPED) for t in self.tasks)

Callers 1

run_queueFunction · 0.80

Calls 1

saveMethod · 0.95

Tested by

no test coverage detected