MCPcopy Create free account
hub / github.com/krau/SaveAny-Bot / DeleteTask

Function DeleteTask

api/progress.go:88–92  ·  view source on GitHub ↗

DeleteTask removes a task record.

(taskID string)

Source from the content-addressed store, hash-verified

86
87// DeleteTask removes a task record.
88func 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.

Callers 5

TestGetTaskHandlerFunction · 0.85
TestCancelTaskHandlerFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestGetTaskHandlerFunction · 0.68
TestCancelTaskHandlerFunction · 0.68