Skip to content

Commit 6edb120

Browse files
committed
reverted
1 parent e60ccd8 commit 6edb120

File tree

1 file changed

+2
-3
lines changed
  • services/storage/src/simcore_service_storage/modules/celery

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,15 @@ def abort_task(task_context: TaskContext, task_uuid: TaskUUID) -> None:
7878
_logger.info("Aborting task %s", task_id)
7979
AbortableAsyncResult(task_id).abort()
8080

81-
@staticmethod
8281
@make_async()
83-
def get_task_result(task_context: TaskContext, task_uuid: TaskUUID) -> Any:
82+
def get_task_result(self, task_context: TaskContext, task_uuid: TaskUUID) -> Any:
8483
task_id = _build_task_id(task_context, task_uuid)
8584
with log_context(
8685
_logger,
8786
logging.DEBUG,
8887
msg=f"Getting task {task_id=} result",
8988
):
90-
return AbortableAsyncResult(task_id).result
89+
return self._celery_app.AsyncResult(task_id).result
9190

9291
def _get_progress_report(
9392
self, task_context: TaskContext, task_uuid: TaskUUID

0 commit comments

Comments
 (0)