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
{{ message }}
Repository navigation
Commit f258440
Browse filesBrowse the repository at this point in the historyBrowse files
exportconstRETRY_MAX_DELAY=2_147_483_647// max 32-bit signed integer for setTimeout
31
31
exportconstRETRY_MAX_RETRIES=5
32
-
exportconstRETRY_MAX_WAIT=300_000// longest provider-requested wait worth sleeping through
32
+
exportconstRETRY_MAX_WAIT=300_000// longest provider-requested wait worth sleeping through - waits above this stop the retry loop instead of sleeping, see policy(). Distinct from RETRY_MAX_DELAY (backoff cap).
33
33
34
34
constRETRYABLE_MESSAGE_PATTERNS=[
35
35
/429|500|502|503|504|524/i,
@@ -199,7 +199,7 @@ export function policy(opts: {
199
199
attempt: meta.attempt,
200
200
message: retry.message,
201
201
action: retry.action,
202
-
next: now+wait,
202
+
next: wait>RETRY_MAX_WAIT ? now : now+wait,
203
203
})
204
204
// Status is published first so the limit dialog still fires, then we stop: a wait
205
205
// this long is an exhausted quota window, and sleeping through it leaves the
0 commit comments