Skip to content

Commit c05fed9

Browse files
author
Andrei Neagu
committed
refactor
1 parent 15f6d18 commit c05fed9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

services/storage/src/simcore_service_storage/modules/long_running_tasks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55
from servicelib.long_running_tasks.task import Namespace
66

77
from .._meta import API_VTAG
8-
from ..core.settings import ApplicationSettings
8+
from ..core.settings import get_application_settings
99

1010
_LONG_RUNNING_TASKS_NAMESPACE: Final[Namespace] = "storage"
1111

1212

1313
def setup_rest_api_long_running_tasks_for_uploads(app: FastAPI) -> None:
14-
settings: ApplicationSettings = app.state.settings
1514
setup(
1615
app,
1716
router_prefix=f"/{API_VTAG}/futures",
18-
redis_settings=settings.STORAGE_REDIS,
17+
redis_settings=get_application_settings(app).STORAGE_REDIS,
1918
namespace=_LONG_RUNNING_TASKS_NAMESPACE,
2019
)

0 commit comments

Comments
 (0)