Add telemetry task's identifier at time startAt.
(ctx context.Context, id string, startAt time.Time, replace bool)
| 106 | |
| 107 | // Add telemetry task's identifier at time startAt. |
| 108 | func (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 |