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 86d2954 commit e552c15Copy full SHA for e552c15
services/web/server/src/simcore_service_webserver/celery/settings.py
@@ -1,11 +1,11 @@
1
from aiohttp import web
2
from settings_library.celery import CelerySettings
3
4
-from ..constants import APP_SETTINGS_KEY
+from ..application_keys import APP_SETTINGS_APPKEY
5
6
7
def get_plugin_settings(app: web.Application) -> CelerySettings:
8
- settings: CelerySettings | None = app[APP_SETTINGS_KEY].WEBSERVER_CELERY
+ settings = app[APP_SETTINGS_APPKEY].WEBSERVER_CELERY
9
assert settings, "setup_settings not called?" # nosec
10
assert isinstance(settings, CelerySettings) # nosec
11
return settings
0 commit comments