Skip to content

Commit 051312b

Browse files
authored
Fix Flask health endpoint collision (#278)
1 parent 22cb11d commit 051312b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from runtime_execution_policy import dca_execution_unsupported_reason
2727
from runtime_config_support import load_platform_runtime_settings
2828
from notifications.telegram import build_signal_text, build_strategy_display_name, build_translator
29-
from quant_platform_kit.common.health import register_health_endpoint
3029
from quant_platform_kit.common.runtime_reports import (
3130
append_runtime_report_error,
3231
build_runtime_report_base,
@@ -58,7 +57,6 @@
5857
from decision_mapper import map_strategy_decision_to_plan
5958

6059
app = Flask(__name__)
61-
register_health_endpoint(app) # GET /health /healthz
6260

6361
# ---------------------------------------------------------------------------
6462
# Config and constants (GCP project, Telegram, execution and strategy params)
@@ -901,6 +899,7 @@ def request_method() -> str:
901899
return "GET"
902900

903901

902+
@app.route("/healthz", methods=["GET"])
904903
@app.route("/health", methods=["GET"])
905904
def health():
906905
critical_errors: list[str] = []

0 commit comments

Comments
 (0)