go-workers
go-workers copied to clipboard
Improvements to retry middleware
This PR adds some improvements to the retry middleware implemented.
- Allow configuring retry exponential backoff by using
RetryOptions
struct inEnqueueOptions
- Add
RetryMax
field: even thoughRetry
can be either a bool or an int (when processing the job), theEnqueueOptions
struct specifies it as a bool, so the maximum number of retries is always set to the default value of 25.RetryMax
field allows specifying a custom maximum number of retries.
Any updates on merging this improvement?
any updates on this?
any update about it ?