go-workers icon indicating copy to clipboard operation
go-workers copied to clipboard

Improvements to retry middleware

Open cscatolini opened this issue 7 years ago • 3 comments

This PR adds some improvements to the retry middleware implemented.

  1. Allow configuring retry exponential backoff by using RetryOptions struct in EnqueueOptions
  2. Add RetryMax field: even though Retry can be either a bool or an int (when processing the job), the EnqueueOptions 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.

cscatolini avatar Oct 29 '17 23:10 cscatolini

Any updates on merging this improvement?

andrehp avatar Jan 19 '18 13:01 andrehp

any updates on this?

hcliff avatar Apr 04 '18 17:04 hcliff

any update about it ?

fcarrero avatar Oct 25 '22 22:10 fcarrero