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 535b0b9 commit c091814Copy full SHA for c091814
packages/service-library/src/servicelib/long_running_tasks/task.py
@@ -335,6 +335,7 @@ async def _tasks_monitor(self) -> None:
335
result_field = ResultField(
336
str_error=dumps(TaskCancelledError(task_id=task_id))
337
)
338
+ # NOTE: if the task is itself cancelled it shall re-raise: see https://superfastpython.com/asyncio-cancellederror-consumed/
339
current_task = asyncio.current_task()
340
assert current_task is not None # nosec
341
if current_task.cancelling() > 0:
0 commit comments