File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
services/web/server/src/simcore_service_webserver/garbage_collector Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 33from aiohttp import web
44from servicelib .aiohttp .application_setup import ModuleCategory , app_module_setup
55from servicelib .logging_utils import set_parent_module_log_level
6- from simcore_service_webserver .redis import setup_redis
76
87from ..application_settings import get_application_settings
98from ..login .plugin import setup_login_storage
109from ..products .plugin import setup_products
1110from ..projects ._projects_repository_legacy import setup_projects_db
11+ from ..redis import setup_redis
1212from ..socketio .plugin import setup_socketio
1313from . import _tasks_api_keys , _tasks_core , _tasks_trash , _tasks_users
1414from .settings import get_plugin_settings
2323 logger = _logger ,
2424)
2525def setup_garbage_collector (app : web .Application ) -> None :
26+ # distributed exclusive periodic tasks
27+ setup_redis (app )
28+
2629 # for trashing
2730 setup_products (app )
2831
2932 # - project-api needs access to db
3033 setup_projects_db (app )
34+
3135 # - project needs access to socketio via notify_project_state_update
3236 setup_socketio (app )
3337 # - project needs access to user-api that is connected to login plugin
3438 setup_login_storage (app )
3539
36- setup_redis (app )
37-
3840 settings = get_plugin_settings (app )
3941
4042 app .cleanup_ctx .append (_tasks_core .create_background_task_for_garbage_collection ())
You can’t perform that action at this time.
0 commit comments