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 15f6d18 commit c05fed9Copy full SHA for c05fed9
services/storage/src/simcore_service_storage/modules/long_running_tasks.py
@@ -5,16 +5,15 @@
5
from servicelib.long_running_tasks.task import Namespace
6
7
from .._meta import API_VTAG
8
-from ..core.settings import ApplicationSettings
+from ..core.settings import get_application_settings
9
10
_LONG_RUNNING_TASKS_NAMESPACE: Final[Namespace] = "storage"
11
12
13
def setup_rest_api_long_running_tasks_for_uploads(app: FastAPI) -> None:
14
- settings: ApplicationSettings = app.state.settings
15
setup(
16
app,
17
router_prefix=f"/{API_VTAG}/futures",
18
- redis_settings=settings.STORAGE_REDIS,
+ redis_settings=get_application_settings(app).STORAGE_REDIS,
19
namespace=_LONG_RUNNING_TASKS_NAMESPACE,
20
)
0 commit comments