We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 938c6ae commit c6f48f1Copy full SHA for c6f48f1
services/storage/src/simcore_service_storage/api/_worker_tasks/_simcore_s3.py
@@ -17,11 +17,13 @@
17
_logger = logging.getLogger(__name__)
18
19
20
-def _task_progress_cb(task: Task, task_id: TaskId, report: ProgressReport) -> None:
+async def _task_progress_cb(
21
+ task: Task, task_id: TaskId, report: ProgressReport
22
+) -> None:
23
worker = get_celery_worker(task.app)
24
assert task.name # nosec
- worker.set_task_progress(
- task_name=task.name,
25
+ await worker.set_task_progress(
26
+ task_name=task,
27
task_id=task_id,
28
report=report,
29
)
0 commit comments