We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a8a978 commit 6f63613Copy full SHA for 6f63613
packages/service-library/src/servicelib/redis/_semaphore.py
@@ -450,7 +450,7 @@ async def _periodic_reacquisition(
450
started: asyncio.Event,
451
cancellation_event: asyncio.Event,
452
) -> None:
453
- if cancellation_event.is_set() or asyncio.current_task().cancelled():
+ if cancellation_event.is_set():
454
raise asyncio.CancelledError
455
if not started.is_set():
456
started.set()
0 commit comments