diff options
| author | Bryan Morgan <[email protected]> | 2025-06-25 15:37:23 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-25 19:37:23 +0000 |
| commit | eacbb3551ce12012a0ef9b9338b8b747b2e7161c (patch) | |
| tree | 4a6b195096698787d449d824dd5a5c3ada282694 /packages/core/src/utils/retry.ts | |
| parent | 4b5ca6bc777180b2ea11f391e6f612da5072cc3e (diff) | |
changed 429 failover from 3 consecutive to 2 for OAuth users (#1579)
Diffstat (limited to 'packages/core/src/utils/retry.ts')
| -rw-r--r-- | packages/core/src/utils/retry.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/core/src/utils/retry.ts b/packages/core/src/utils/retry.ts index e0fc4ced..851db0e7 100644 --- a/packages/core/src/utils/retry.ts +++ b/packages/core/src/utils/retry.ts @@ -97,7 +97,7 @@ export async function retryWithBackoff<T>( if (attempt >= maxAttempts || !shouldRetry(error as Error)) { // If we have persistent 429s and a fallback callback for OAuth if ( - consecutive429Count >= 3 && + consecutive429Count >= 2 && onPersistent429 && (authType === AuthType.LOGIN_WITH_GOOGLE_PERSONAL || authType === AuthType.LOGIN_WITH_GOOGLE_ENTERPRISE) |
