File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules
user_services_preferences Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 22from servicelib .db_asyncpg_utils import check_postgres_liveness , with_async_pg_engine
33from settings_library .postgres import PostgresSettings
44
5+ from .._meta import APP_NAME
56from ..core .settings import ApplicationSettings
67from .service_liveness import (
78 wait_for_service_liveness ,
@@ -18,7 +19,8 @@ async def wait_for_database_liveness(app: FastAPI) -> None:
1819 postgres_settings = app_settings .POSTGRES_SETTINGS
1920 assert isinstance (postgres_settings , PostgresSettings ) # nosec
2021 async with with_async_pg_engine (
21- postgres_settings , application_name = app .title
22+ postgres_settings ,
23+ application_name = f"{ APP_NAME } -{ app_settings .DY_SIDECAR_NODE_ID } " ,
2224 ) as engine :
2325 await wait_for_service_liveness (
2426 check_postgres_liveness ,
Original file line number Diff line number Diff line change 2323from tenacity .stop import stop_after_delay
2424from tenacity .wait import wait_random_exponential
2525
26+ from .._meta import APP_NAME
2627from ..core .docker_compose_utils import (
2728 docker_compose_create ,
2829 docker_compose_down ,
@@ -435,7 +436,7 @@ async def _save_state_folder(
435436 progress_bar = progress_bar ,
436437 aws_s3_cli_settings = settings .DY_SIDECAR_AWS_S3_CLI_SETTINGS ,
437438 legacy_state = _get_legacy_state_with_dy_volumes_path (settings ),
438- application_name = app . title ,
439+ application_name = f" { APP_NAME } - { settings . DY_SIDECAR_NODE_ID } " ,
439440 )
440441
441442
Original file line number Diff line number Diff line change 33from fastapi import FastAPI
44from servicelib .logging_utils import log_context
55
6+ from ..._meta import APP_NAME
67from ...core .settings import ApplicationSettings
78from ._manager import UserServicesPreferencesManager
89from ._utils import is_feature_enabled
@@ -33,7 +34,7 @@ async def on_startup() -> None:
3334 service_version = settings .DY_SIDECAR_SERVICE_VERSION ,
3435 user_id = settings .DY_SIDECAR_USER_ID ,
3536 product_name = settings .DY_SIDECAR_PRODUCT_NAME ,
36- application_name = app . title ,
37+ application_name = f" { APP_NAME } - { settings . DY_SIDECAR_NODE_ID } " ,
3738 )
3839 )
3940 else :
You can’t perform that action at this time.
0 commit comments