Skip to content

Commit 61ff8ff

Browse files
committed
ensure we do not wait too much
1 parent dd7c62e commit 61ff8ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/service-library/src/servicelib/redis/_semaphore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ async def acquire(self) -> bool:
218218
else stop_never
219219
)
220220
),
221-
wait=wait_random_exponential(min=0.1),
221+
wait=wait_random_exponential(min=0.1, max=0.5),
222222
retry=retry_if_exception_type(redis.exceptions.TimeoutError),
223223
)
224224
async def _try_acquire() -> list[str] | None:

0 commit comments

Comments
 (0)