Skip to content

Commit 515bab6

Browse files
committed
pass a message to cancel
1 parent 061d5c4 commit 515bab6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/common-library/src/common_library/async_tools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ async def cancel_wait_task(
8989
TimeoutError: raised if cannot cancel the task.
9090
CancelledError: raised ONLY if owner is being cancelled.
9191
"""
92-
93-
task.cancel()
92+
task.cancel("cancel_wait_task was called to cancel this task")
9493
try:
9594
_logger.debug("%s", f"Cancelling task {task.get_name()!r}")
9695
await asyncio.shield(

0 commit comments

Comments
 (0)