diff --git a/main.py b/main.py index 9889ba3..357082c 100644 --- a/main.py +++ b/main.py @@ -39,7 +39,6 @@ build_strategy_plugin_alert_context_label as build_alert_context_label, publish_strategy_plugin_alerts as dispatch_strategy_plugin_alerts, ) -from quant_platform_kit.common.health import register_health_endpoint from quant_platform_kit.common.runtime_assembly import build_runtime_assembly from quant_platform_kit.common.runtime_reports import ( append_runtime_report_error, @@ -83,7 +82,6 @@ from strategy_runtime import load_strategy_runtime app = Flask(__name__) -register_health_endpoint(app) # GET /health /healthz ensure_event_loop = ibkr_ensure_event_loop NEW_YORK_TZ = ZoneInfo("America/New_York") STRATEGY_RUN_LOCK = threading.Lock() @@ -1466,6 +1464,7 @@ def handle_monitor_dispatch(): ) +@app.route("/healthz", methods=["GET"]) @app.route("/health", methods=["GET"]) def health(): critical_errors: list[str] = []