Skip to content

Commit cb2a549

Browse files
committed
feat: add /health endpoint via QPK shared module
1 parent 166e6d5 commit cb2a549

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
from flask import Flask, jsonify, request
1212

13+
from quant_platform_kit.common.health import register_health_endpoint
1314
from quant_platform_kit.common.platform_runner import dispatch_due_monitors, load_monitor_targets
1415
from application.firstrade_client import (
1516
FirstradeBrokerClient,
@@ -39,6 +40,7 @@
3940
MARKET_TIMEZONE = os.getenv("FIRSTRADE_MARKET_TIMEZONE", "America/New_York")
4041

4142
app = Flask(__name__)
43+
register_health_endpoint(app) # GET /health /healthz
4244

4345

4446
def get_project_id() -> str | None:

0 commit comments

Comments
 (0)