From 926dd9951f4e905a8a29b966cc51b285a4a34438 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Wed, 17 Dec 2025 14:26:48 +0000 Subject: [PATCH] re made appointments --- backend/src/dashboard/services/hubspot_client_async.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/backend/src/dashboard/services/hubspot_client_async.py b/backend/src/dashboard/services/hubspot_client_async.py index 574d050..ed0de4a 100644 --- a/backend/src/dashboard/services/hubspot_client_async.py +++ b/backend/src/dashboard/services/hubspot_client_async.py @@ -50,11 +50,8 @@ class HubSpotClientAsync: raise # Exponential backoff with jitter - backoff = min( - self.MAX_BACKOFF, - self.BASE_BACKOFF * (2 ** (attempt - 1)) - ) - jitter = random.uniform(10, 10 + backoff) + backoff = self.BASE_BACKOFF * (2 ** (attempt - 1)) + jitter = random.uniform(self.MIN_BACKOFF, self.MIN_BACKOFF + backoff) self.logger.warning( f"HubSpot retry {attempt}/{self.MAX_RETRIES} "