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 b7acc6c commit 18a2075Copy full SHA for 18a2075
packages/service-library/src/servicelib/long_running_tasks/task.py
@@ -375,8 +375,9 @@ async def cancel_task(
375
"""
376
Eventually cancels the task.
377
378
- NOTE: task can be cancelled immediatley if it runs in the same process or
379
- be cancelled some time in the near future if it runs in a different process.
+ # NOTE: aborts the task:
+ # - Immediately, if the task is running on the current worker.
380
+ # - Asynchronously (after a short delay), if the task is running on another worker.
381
382
raises TaskNotFoundError if the task cannot be found
383
0 commit comments