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

Method Add

pkg/telemetry/exporter/task_queue.go:108–110  ·  view source on GitHub ↗

Add telemetry task's identifier at time startAt.

(ctx context.Context, id string, startAt time.Time, replace bool)

Source from the content-addressed store, hash-verified

106
107// Add telemetry task's identifier at time startAt.
108func (q *RedisTaskQueue) Add(ctx context.Context, id string, startAt time.Time, replace bool) error {
109 return q.queue.Add(ctx, nil, id, startAt, replace)
110}
111
112// RegisterCallback registers a callback that is called when a task is popped.
113// All callbacks should be registered before the dispatch of the tasks in the queue, otherwise they are proned to fail

Callers 2

TestConcurrentTaskSetFunction · 0.95
PopMethod · 0.95

Calls 1

AddMethod · 0.65

Tested by 1

TestConcurrentTaskSetFunction · 0.76