diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 17:46:56 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 17:46:56 +0900 |
| commit | c294e9df6207973306f58186d278e12399f162a3 (patch) | |
| tree | 9f847439eb29c82a77da0dcf7fe426cfa0cbe65b /services/order-executor | |
| parent | 69e88b3b353f1a2ab7a78259b480e8afbd87669c (diff) | |
fix: WS factory, backtester config, CI docker builds, health port docs
Diffstat (limited to 'services/order-executor')
| -rw-r--r-- | services/order-executor/src/order_executor/main.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/services/order-executor/src/order_executor/main.py b/services/order-executor/src/order_executor/main.py index 1eeee7b..f111c75 100644 --- a/services/order-executor/src/order_executor/main.py +++ b/services/order-executor/src/order_executor/main.py @@ -16,6 +16,11 @@ from order_executor.config import ExecutorConfig from order_executor.executor import OrderExecutor from order_executor.risk_manager import RiskManager +# 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 = 2 + async def run() -> None: config = ExecutorConfig() @@ -61,7 +66,7 @@ async def run() -> None: stream = "signals" health = HealthCheckServer( - "order-executor", port=config.health_port + 2, auth_token=config.metrics_auth_token + "order-executor", port=config.health_port + HEALTH_PORT_OFFSET, auth_token=config.metrics_auth_token ) health.register_check("redis", broker.ping) await health.start() |
