From c294e9df6207973306f58186d278e12399f162a3 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 1 Apr 2026 17:46:56 +0900 Subject: fix: WS factory, backtester config, CI docker builds, health port docs --- services/strategy-engine/src/strategy_engine/main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'services/strategy-engine/src') diff --git a/services/strategy-engine/src/strategy_engine/main.py b/services/strategy-engine/src/strategy_engine/main.py index efd79e9..1ccef6e 100644 --- a/services/strategy-engine/src/strategy_engine/main.py +++ b/services/strategy-engine/src/strategy_engine/main.py @@ -16,6 +16,11 @@ from strategy_engine.plugin_loader import load_strategies # The strategies directory lives alongside the installed package STRATEGIES_DIR = Path(__file__).parent.parent.parent.parent / "strategies" +# Health check port: base (HEALTH_PORT, default 8080) + offset +# data-collector: +0 (8080), strategy-engine: +1 (8081) +# order-executor: +2 (8082), portfolio-manager: +3 (8083) +HEALTH_PORT_OFFSET = 1 + async def process_symbol(engine: StrategyEngine, stream: str, log) -> None: """Process candles for a single symbol stream.""" @@ -47,7 +52,7 @@ async def run() -> None: engine = StrategyEngine(broker=broker, strategies=strategies) health = HealthCheckServer( - "strategy-engine", port=config.health_port + 1, auth_token=config.metrics_auth_token + "strategy-engine", port=config.health_port + HEALTH_PORT_OFFSET, auth_token=config.metrics_auth_token ) health.register_check("redis", broker.ping) await health.start() -- cgit v1.2.3