Improve logic when retrying establishing database connection (#121047)
This commit is contained in:
parent
976cb434c9
commit
e26b4554e6
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue