Skip to content

Commit c6f48f1

Browse files
author
Andrei Neagu
committed
fixed
1 parent 938c6ae commit c6f48f1

File tree

1 file changed

+5
-3
lines changed
  • services/storage/src/simcore_service_storage/api/_worker_tasks

1 file changed

+5
-3
lines changed

services/storage/src/simcore_service_storage/api/_worker_tasks/_simcore_s3.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
_logger = logging.getLogger(__name__)
1818

1919

20-
def _task_progress_cb(task: Task, task_id: TaskId, report: ProgressReport) -> None:
20+
async def _task_progress_cb(
21+
task: Task, task_id: TaskId, report: ProgressReport
22+
) -> None:
2123
worker = get_celery_worker(task.app)
2224
assert task.name # nosec
23-
worker.set_task_progress(
24-
task_name=task.name,
25+
await worker.set_task_progress(
26+
task_name=task,
2527
task_id=task_id,
2628
report=report,
2729
)

0 commit comments

Comments
 (0)