File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/core Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 44from servicelib .utils import logged_gather
55from settings_library .postgres import PostgresSettings
66
7+ from ..modules .service_liveness import wait_for_service_liveness
78from .rabbitmq import wait_for_rabbitmq_liveness
89from .registry import wait_for_registries_liveness
910from .settings import ApplicationSettings
@@ -29,7 +30,12 @@ async def on_startup() -> None:
2930 assert isinstance (postgres_settings , PostgresSettings ) # nosec
3031 liveliness_results = await logged_gather (
3132 * [
32- connect_to_db (app , postgres_settings ),
33+ wait_for_service_liveness (
34+ connect_to_db (app , postgres_settings ),
35+ service_name = "Postgres" ,
36+ endpoint = postgres_settings .dsn ,
37+ url = postgres_settings .dsn ,
38+ ),
3339 wait_for_rabbitmq_liveness (app ),
3440 wait_for_registries_liveness (app ),
3541 wait_for_storage_liveness (app ),
You can’t perform that action at this time.
0 commit comments