Skip to content

Commit 8b3b3ce

Browse files
committed
use dataclass
1 parent ff4fa9c commit 8b3b3ce

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import contextlib
22
import logging
3+
from dataclasses import dataclass
34
from typing import Any, Final
45
from uuid import uuid4
56

@@ -54,9 +55,9 @@ def _build_task_id(task_context: TaskContext, task_uuid: TaskUUID) -> TaskID:
5455
)
5556

5657

58+
@dataclass
5759
class CeleryTaskQueueClient:
58-
def __init__(self, celery_app: Celery):
59-
self._celery_app = celery_app
60+
_celery_app: Celery
6061

6162
@make_async()
6263
def send_task(

0 commit comments

Comments
 (0)