You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current names for retry policies exported from the package are not very accurate at describing what they do. Let's make it a little easier.
Old
Description
retryForeverExponential
retries with the default timeout settings, in a repeating pattern, forever
retryForeverExponentialCapped
same as above, except the maximum length of a timeout is 30 minutes, but the pattern will still repeat forever
retryForeverExponentialCappedRandom (default)
same as above, but there's also some randomness introduced to prevent stampeding herds
fiveRetriesInFiveMinutes
what it says
rapidRetryPolicy
try 10 times in about 10ms
Specifically, retryForeverExponentialCapped doesn't make sense because the maximum timeout that can be reached is about 17 minutes, so the 30 minute cap is meaningless.
Let's simplify these to the following:
New
Description
tenRetriesInAboutThirtyMinutes (default)
what it says
fiveRetriesInFiveMinutes
what it says
rapidRetryPolicy
try 10 times in about 10ms
Notable, the "about" word is helpful for showing that the randomize option is being used. Also notable, the forever option is not being used, so that errors that retry don't stay "stuck" in a retry loop. This may cause more errors to be seen, but that is likely a good thing so that developers can find issues in their apps.
The tenRetriesInAboutThirtyMinutes policy looks like this:
Description
The current names for retry policies exported from the package are not very accurate at describing what they do. Let's make it a little easier.
retryForeverExponential
retryForeverExponentialCapped
retryForeverExponentialCappedRandom
(default)fiveRetriesInFiveMinutes
rapidRetryPolicy
Specifically,
retryForeverExponentialCapped
doesn't make sense because the maximum timeout that can be reached is about 17 minutes, so the 30 minute cap is meaningless.Let's simplify these to the following:
tenRetriesInAboutThirtyMinutes
(default)fiveRetriesInFiveMinutes
rapidRetryPolicy
Notable, the "about" word is helpful for showing that the
randomize
option is being used. Also notable, theforever
option is not being used, so that errors that retry don't stay "stuck" in a retry loop. This may cause more errors to be seen, but that is likely a good thing so that developers can find issues in their apps.The
tenRetriesInAboutThirtyMinutes
policy looks like this:Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: