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 8e7d867 commit 6d7198fCopy full SHA for 6d7198f
packages/service-library/src/servicelib/redis/_semaphore_decorator.py
@@ -4,11 +4,8 @@
4
import logging
5
import socket
6
from collections.abc import Callable, Coroutine
7
-from contextlib import suppress
8
from typing import Any, ParamSpec, TypeVar
9
10
-from common_library.async_tools import cancel_wait_task
11
-
12
from ..background_task import periodic
13
from ..logging_errors import create_troubleshootting_log_kwargs
14
from ._client import RedisClientSDK
@@ -136,8 +133,6 @@ async def _periodic_renewer() -> None:
136
133
result = await work_task
137
134
138
135
# Cancel renewal task (work is done)
139
- with suppress(TimeoutError):
140
- await cancel_wait_task(renewal_task, max_delay=5)
141
renewal_task.cancel()
142
143
return result
0 commit comments