MCPcopy Create free account
hub / github.com/flant/shell-operator / Remove

Method Remove

pkg/task/queue/task_storage.go:185–190  ·  view source on GitHub ↗

Remove removes and returns a task by ID

(id string)

Source from the content-addressed store, hash-verified

183
184// Remove removes and returns a task by ID
185func (ts *TaskStorage) Remove(id string) task.Task {
186 ts.mu.Lock()
187 defer ts.mu.Unlock()
188
189 return ts.remove(id)
190}
191
192// GetSnapshot returns a copy of all tasks in the queue
193func (ts *TaskStorage) GetSnapshot() []task.Task {

Callers

nothing calls this directly

Calls 1

removeMethod · 0.95

Tested by

no test coverage detected