DeleteTask removes a task record.
(taskID string)
| 86 | |
| 87 | // DeleteTask removes a task record. |
| 88 | func DeleteTask(taskID string) { |
| 89 | store.mu.Lock() |
| 90 | defer store.mu.Unlock() |
| 91 | delete(store.tasks, taskID) |
| 92 | } |
| 93 | |
| 94 | // CleanupExpired removes tasks that reached a terminal state more than the |
| 95 | // store's retention duration ago. It is safe to call periodically. |
no outgoing calls