Skip to content

Commit 18a2075

Browse files
author
Andrei Neagu
committed
comment update
1 parent b7acc6c commit 18a2075

File tree

1 file changed

+3
-2
lines changed
  • packages/service-library/src/servicelib/long_running_tasks

1 file changed

+3
-2
lines changed

packages/service-library/src/servicelib/long_running_tasks/task.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,9 @@ async def cancel_task(
375375
"""
376376
Eventually cancels the task.
377377
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.
378+
# NOTE: aborts the task:
379+
# - Immediately, if the task is running on the current worker.
380+
# - Asynchronously (after a short delay), if the task is running on another worker.
380381
381382
raises TaskNotFoundError if the task cannot be found
382383
"""

0 commit comments

Comments
 (0)