Queuer enqueues asynq tasks. The driver injects the active OTel trace context from ctx into the task's headers so worker spans become children of the producer's; callers don't need to do anything special.
| 15 | // context from ctx into the task's headers so worker spans become children |
| 16 | // of the producer's; callers don't need to do anything special. |
| 17 | type Queuer interface { |
| 18 | Write(ctx context.Context, taskName convoy.TaskName, queueName convoy.QueueName, job *Job) error |
| 19 | WriteWithoutTimeout(ctx context.Context, taskName convoy.TaskName, queueName convoy.QueueName, job *Job) error |
| 20 | Options() QueueOptions |
| 21 | } |
| 22 | |
| 23 | type Job struct { |
| 24 | ID string `json:"id"` |
no outgoing calls
no test coverage detected