Skip to content

Commit d29a277

Browse files
committed
added dependency
1 parent df41a32 commit d29a277

File tree

1 file changed

+13
-0
lines changed
  • services/storage/src/simcore_service_storage/api/rest/dependencies

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from typing import Annotated
2+
3+
from fastapi import Depends, FastAPI
4+
from servicelib.fastapi.dependencies import get_app
5+
6+
from ....modules.celery import get_celery_client as _get_celery_client_from_app
7+
from ....modules.celery.client import CeleryTaskQueueClient
8+
9+
10+
def get_celery_client(
11+
app: Annotated[FastAPI, Depends(get_app)],
12+
) -> CeleryTaskQueueClient:
13+
return _get_celery_client_from_app(app)

0 commit comments

Comments
 (0)