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

Method Start

pkg/task/queue/queue_set.go:71–84  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

69}
70
71func (tqs *TaskQueueSet) Start(ctx context.Context) {
72 tqs.IterateSnapshot(ctx, func(ctx context.Context, queue *TaskQueue) {
73 defer func() {
74 if r := recover(); r != nil {
75 tqs.logger.Warn("panic recovered in TaskQueueSet Start",
76 slog.Any(pkg.LogKeyError, r),
77 slog.String(pkg.LogKeyStack, string(debug.Stack())),
78 )
79 }
80 }()
81
82 queue.Start(ctx)
83 })
84}
85
86// Add register a new queue for TaskQueueSet.
87func (tqs *TaskQueueSet) Add(queue *TaskQueue) {

Callers

nothing calls this directly

Calls 3

IterateSnapshotMethod · 0.95
StartMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected