re made appointments

This commit is contained in:
Jun-te Kim 2025-12-17 14:26:48 +00:00
parent f996ded11c
commit 926dd9951f

View file

@ -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} "