MCPcopy Index your code
hub / github.com/flant/shell-operator / Remove

Method Remove

pkg/task/queue/task_queue.go:674–683  ·  view source on GitHub ↗

Remove finds element by id and deletes it.

(id string)

Source from the content-addressed store, hash-verified

672
673// Remove finds element by id and deletes it.
674func (q *TaskQueue) Remove(id string) task.Task {
675 defer q.MeasureActionTime("Remove")()
676
677 t := q.storage.Remove(id)
678 if t != nil {
679 q.queueTasksCounter.Remove(t)
680 }
681
682 return t
683}
684
685func (q *TaskQueue) Stop() {
686 if q.cancel != nil {

Callers

nothing calls this directly

Calls 2

MeasureActionTimeMethod · 0.95
RemoveMethod · 0.65

Tested by

no test coverage detected