Skip to content

Does a backoffLimit of 0 disable backoff? #2309

Answered by sindresorhus
jensbodal asked this question in Q&A
Discussion options

You must be logged in to vote

The backoffLimit parameter sets an upper limit on the computedValue for the delay between retries, not the behavior of the exponential backoff. To disable exponential backoff, set calculateDelay function to return a fixed value, like return 1000; in the retry object. This way, the delay between retries remains constant, achieving the desired effect.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jensbodal
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants