Skip to content

Commit 65557cb

Browse files
fix get result
1 parent dd4c535 commit 65557cb

File tree

1 file changed

+4
-1
lines changed
  • services/storage/src/simcore_service_storage/modules/celery

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ async def get_task_result(
9292
task_id = build_task_id(task_context, task_uuid)
9393
async_result = self._celery_app.AsyncResult(task_id)
9494
result = async_result.result
95-
if async_result.ready() and (await self._task_store.get(task_id)).ephemeral:
95+
if async_result.ready():
96+
task_metadata = await self._task_store.get(task_id)
97+
if task_metadata is not None and task_metadata.ephemeral:
98+
await self._task_store.remove(task_id)
9699
await self._task_store.remove(task_id)
97100
return result
98101

0 commit comments

Comments
 (0)