Skip to content

Commit 2068e50

Browse files
fix test_start_export_data
1 parent 8fe8e17 commit 2068e50

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

services/storage/src/simcore_service_storage/modules/celery/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async def send_task(
6868
task_name,
6969
task_id=task_id,
7070
kwargs=task_params,
71-
queue=task_metadata.queue,
71+
queue=task_metadata.queue.value,
7272
)
7373

7474
expiry = (
@@ -145,12 +145,12 @@ async def get_task_status(
145145
logging.DEBUG,
146146
msg=f"Getting task status: {task_context=} {task_uuid=}",
147147
):
148-
state = await self._get_state(task_context, task_uuid)
148+
task_state = await self._get_state(task_context, task_uuid)
149149
result = await self._get_result(task_context, task_uuid)
150150
return TaskStatus(
151151
task_uuid=task_uuid,
152-
task_state=state,
153-
progress_report=await self._get_progress_report(state, result),
152+
task_state=task_state,
153+
progress_report=await self._get_progress_report(task_state, result),
154154
)
155155

156156
async def get_task_uuids(self, task_context: TaskContext) -> set[TaskUUID]:

services/storage/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ async def with_storage_celery_worker_controller(
10161016
concurrency=1,
10171017
loglevel="info",
10181018
perform_ping_check=False,
1019-
worker_kwargs={"hostname": "celery@worker1"},
1019+
queues="default,cpu_bound",
10201020
) as worker:
10211021
worker_init.send(sender=worker)
10221022

0 commit comments

Comments
 (0)