Increase DB retry backoff (#4346)
This commit is contained in:
committed by
GitHub
parent
dfcf4913e9
commit
5f37a0061e
@@ -34,7 +34,7 @@ def read_retry(retries: int = 3) -> Callable:
|
|||||||
LOG.error("SQLAlchemyError after all retries", exc_info=True, attempt=attempt)
|
LOG.error("SQLAlchemyError after all retries", exc_info=True, attempt=attempt)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
backoff_time = 0.1 * (2**attempt)
|
backoff_time = 0.2 * (2**attempt)
|
||||||
LOG.warning(
|
LOG.warning(
|
||||||
"SQLAlchemyError retrying",
|
"SQLAlchemyError retrying",
|
||||||
attempt=attempt,
|
attempt=attempt,
|
||||||
|
|||||||
Reference in New Issue
Block a user