From 61df1b4cf200dd4027b6cb4946d694e7a478f155 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Tue, 11 Jun 2024 10:37:51 +0200 Subject: [PATCH] fix(startup): fixed service startup for clients --- debye_bec/bec_ipython_client/startup/pre_startup.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/debye_bec/bec_ipython_client/startup/pre_startup.py b/debye_bec/bec_ipython_client/startup/pre_startup.py index df39fab..1e99b60 100644 --- a/debye_bec/bec_ipython_client/startup/pre_startup.py +++ b/debye_bec/bec_ipython_client/startup/pre_startup.py @@ -3,6 +3,8 @@ Pre-startup script for BEC client. This script is executed before the BEC client is started. It can be used to add additional command line arguments. """ +from bec_lib.service_config import ServiceConfig + def extend_command_line_args(parser): """ @@ -12,3 +14,10 @@ def extend_command_line_args(parser): # parser.add_argument("--session", help="Session name", type=str, default="cSAXS") return parser + + +def get_config() -> ServiceConfig: + """ + Create and return the service configuration. + """ + return ServiceConfig(redis={"host": "x01da-bec-001", "port": 6379})