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 b601d2b commit 3b94e97Copy full SHA for 3b94e97
packages/service-library/src/servicelib/redis/_semaphore_decorator.py
@@ -135,6 +135,8 @@ async def _periodic_renewer() -> None:
135
result = await work_task
136
137
# Cancel renewal task (work is done)
138
+ # NOTE: if we do not explicitely await the task inside the context manager
139
+ # it sometimes hangs forever (Python issue?)
140
await cancel_wait_task(renewal_task, max_delay=None)
141
142
return result
0 commit comments