MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / Init

Method Init

pkg/redis/redis.go:641–643  ·  view source on GitHub ↗

Init initializes the task queue. It must be called at least once before using the queue.

(ctx context.Context)

Source from the content-addressed store, hash-verified

639// Init initializes the task queue.
640// It must be called at least once before using the queue.
641func (q *TaskQueue) Init(ctx context.Context) error {
642 return initTaskGroup(ctx, q.Redis, q.Group, q.Key)
643}
644
645// Close closes the TaskQueue.
646func (q *TaskQueue) Close(ctx context.Context) error {

Callers 1

TestTaskQueueFunction · 0.95

Implementers 2

mockTaskQueuepkg/telemetry/exporter/task_queue_test
RedisTaskQueuepkg/telemetry/exporter/task_queue.go

Calls 1

initTaskGroupFunction · 0.85

Tested by 1

TestTaskQueueFunction · 0.76