Work performs the job and returns an error if the job failed. The context will be configured with a timeout according to the worker settings and may be cancelled for other reasons. If no error is returned, the job is assumed to have succeeded and will be marked completed. It is important for any w
(ctx context.Context, job *Job[T])
| 74 | // client has timed out the job or the job rescuer has moved it out of |
| 75 | // running. |
| 76 | Work(ctx context.Context, job *Job[T]) error |
| 77 | } |
| 78 | |
| 79 | // WorkerDefaults is an empty struct that can be embedded in your worker |
no outgoing calls