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

Method Get

pkg/task/queue/task_queue.go:648–651  ·  view source on GitHub ↗

Get returns a task by id.

(id string)

Source from the content-addressed store, hash-verified

646
647// Get returns a task by id.
648func (q *TaskQueue) Get(id string) task.Task {
649 defer q.MeasureActionTime("Get")()
650 return q.storage.Get(id)
651}
652
653// AddAfter inserts a task after the task with specified id.
654func (q *TaskQueue) AddAfter(id string, tasks ...task.Task) {

Callers

nothing calls this directly

Calls 2

MeasureActionTimeMethod · 0.95
GetMethod · 0.65

Tested by

no test coverage detected