mirror of
https://github.com/Hestia-Homes/insight.git
synced 2026-06-08 11:17:25 +00:00
re made appointments
This commit is contained in:
parent
f996ded11c
commit
926dd9951f
1 changed files with 2 additions and 5 deletions
|
|
@ -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} "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue