changed 429 failover from 3 consecutive to 2 for OAuth users (#1579)

This commit is contained in:
Bryan Morgan
2025-06-25 15:37:23 -04:00
committed by GitHub
parent 4b5ca6bc77
commit eacbb3551c
3 changed files with 8 additions and 9 deletions

View File

@@ -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)