File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/simcore_service_storage/modules/celery Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 ]:
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments