Improve logic when retrying establishing database connection (#121047)

This commit is contained in:
Erik Montnemery 2024-07-03 16:22:21 +02:00 committed by GitHub
parent 976cb434c9
commit e26b4554e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -958,6 +958,8 @@ class Recorder(threading.Thread):
self.db_retry_wait,
)
tries += 1
if tries <= self.db_max_retries:
time.sleep(self.db_retry_wait)
return False