Insert or replace the entry for ``task.id``.
(self, task: TaskStateBase)
| 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.""" |
no outgoing calls