From c0914c92b4caeb81e6247989a615f973ef8e9cc2 Mon Sep 17 00:00:00 2001 From: DMleadgen Date: Fri, 10 Apr 2026 16:19:30 -0600 Subject: [PATCH] fix: cap rate-limit backoff to daily ebay poll window --- convex/ebay.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/convex/ebay.ts b/convex/ebay.ts index 6258cfd9..33195b8a 100644 --- a/convex/ebay.ts +++ b/convex/ebay.ts @@ -184,7 +184,11 @@ function isRateLimitError(message: string): boolean { } function getBackoffMs(consecutiveFailures: number, rateLimited: boolean) { - const base = rateLimited ? 2 * BASE_REFRESH_MS : BASE_REFRESH_MS / 2 + if (rateLimited) { + return BASE_REFRESH_MS + } + + const base = BASE_REFRESH_MS / 2 const multiplier = Math.max(1, consecutiveFailures) return Math.min(base * multiplier, MAX_BACKOFF_MS) }