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
backoffLimitparameter sets an upper limit on thecomputedValuefor the delay between retries, not the behavior of the exponential backoff. To disable exponential backoff, setcalculateDelayfunction to return a fixed value, likereturn 1000;in theretryobject. This way, the delay between retries remains constant, achieving the desired effect.