Does a backoffLimit
of 0 disable backoff?
#2309
-
We are trying to retry without a backoff on some specific calls. We have set |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The |
Beta Was this translation helpful? Give feedback.
-
So if I just return a fixed value I saw infinite retries. I had to add a breakpoint based on the number of retries as well. Maybe this was obvious but I missed it :)
|
Beta Was this translation helpful? Give feedback.
The
backoffLimit
parameter sets an upper limit on thecomputedValue
for the delay between retries, not the behavior of the exponential backoff. To disable exponential backoff, setcalculateDelay
function to return a fixed value, likereturn 1000;
in theretry
object. This way, the delay between retries remains constant, achieving the desired effect.