Skip to content

Commit 3523d63

Browse files
committed
@giancarloromeo task_id -> task_key
1 parent 7674b34 commit 3523d63

File tree

1 file changed

+2
-2
lines changed
  • packages/celery-library/src/celery_library

1 file changed

+2
-2
lines changed

packages/celery-library/src/celery_library/task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def wrapper(task: Task, *args: P.args, **kwargs: P.kwargs) -> R:
4747
# NOTE: task.request is a thread local object, so we need to pass the id explicitly
4848
assert task.request.id is not None # nosec
4949

50-
async def _run_task(task_id: TaskKey) -> R:
50+
async def _run_task(task_key: TaskKey) -> R:
5151
try:
5252
async with asyncio.TaskGroup() as tg:
5353
async_io_task = tg.create_task(
@@ -57,7 +57,7 @@ async def _run_task(task_id: TaskKey) -> R:
5757
async def _abort_monitor():
5858
while not async_io_task.done():
5959
if not await app_server.task_manager.task_exists(
60-
task_id
60+
task_key
6161
):
6262
await cancel_wait_task(
6363
async_io_task,

0 commit comments

Comments
 (0)