Upper limit on the retry backoff #1599
Labels
enhancement
This change will extend Got features
good for beginner
This issue is easy to fix
✭ help wanted ✭
What problem are you trying to solve?
Currently there is no upper limit on the backoff, meaning it grows exponentially if you want many retries which is not something you might want.
Describe the feature
So I would add a new optional parameter to the retry object called
backoffLimit
that would be a number of milliseconds to wait maximum between retries. This would basically do aMath.min
between the default calculated backoff value and this parameter value. This would allow a user to put a limit of say 10 and have the following behaviour:Checklist
The text was updated successfully, but these errors were encountered: