Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/memos/graph_dbs/polardb.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def _get_connection(self):
if attempt < max_retries - 1:
# Exponential backoff: 0.1s, 0.2s, 0.4s
"""time.sleep(0.1 * (2**attempt))"""
time.sleep(0.01)
time.sleep(0.003)
continue
else:
raise RuntimeError("Pool returned a closed connection after all retries")
Expand Down Expand Up @@ -284,7 +284,7 @@ def _get_connection(self):
if attempt < max_retries - 1:
# Exponential backoff: 0.1s, 0.2s, 0.4s
"""time.sleep(0.1 * (2**attempt))"""
time.sleep(0.01)
time.sleep(0.003)
continue
else:
raise RuntimeError(
Expand Down Expand Up @@ -317,7 +317,7 @@ def _get_connection(self):
wait_time = 0.5 * (2**attempt)
logger.info(f"[_get_connection] Waiting {wait_time}s before retry...")
"""time.sleep(wait_time)"""
time.sleep(0.01)
time.sleep(0.003)
continue
else:
raise RuntimeError(
Expand All @@ -329,7 +329,7 @@ def _get_connection(self):
# Other pool errors - retry with normal backoff
if attempt < max_retries - 1:
"""time.sleep(0.1 * (2**attempt))"""
time.sleep(0.01)
time.sleep(0.003)
continue
else:
raise RuntimeError(
Expand All @@ -356,7 +356,7 @@ def _get_connection(self):
else:
# Exponential backoff: 0.1s, 0.2s, 0.4s
"""time.sleep(0.1 * (2**attempt))"""
time.sleep(0.01)
time.sleep(0.003)
continue

# Should never reach here, but just in case
Expand Down