MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / upsert

Method upsert

src/task_registry.py:118–121  ·  view source on GitHub ↗

Insert or replace the entry for ``task.id``.

(self, task: TaskStateBase)

Source from the content-addressed store, hash-verified

116 # -- write paths ------------------------------------------------------
117
118 def upsert(self, task: TaskStateBase) -> None:
119 """Insert or replace the entry for ``task.id``."""
120 with self._lock:
121 self._tasks[task.id] = task
122
123 def remove(self, task_id: str) -> bool:
124 """Drop the entry; returns True iff something was removed."""

Calls

no outgoing calls