Skip to content

Commit

Permalink
spew
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan committed Feb 8, 2025
1 parent 2765848 commit 1c5353b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions edb/testbase/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import random
import socket
import ssl
import sys
import time

from gel import abstract
Expand Down Expand Up @@ -422,6 +423,8 @@ async def _retry_operation(self, func):
):
if i >= 5 or self.is_in_transaction():
raise
print("RETRY", i, self.dbname)
sys.stdout.flush()
await asyncio.sleep(
min((2 ** i) * 0.1, 10)
+ random.randrange(100) * 0.001
Expand Down

0 comments on commit 1c5353b

Please sign in to comment.