feat: add /api/healthz endpoint (ref #16) #17
Reference in New Issue
Block a user
Delete Branch "feat/healthz-endpoint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
S7 E2E test - single file, low risk. APPROVED.
❌ CI 失败
请检查 CI 日志并修复。
触发 commit:
7590247f48b01be1e3b2bbfed3360a9949636f15Review — REQUEST_CHANGES
代码本身没问题(9行,简洁正确),但有两个功能性问题需要补完:
router 未注册:healthz.py 定义了新 router,但 main.py 没有导入和 include_router。当前合并后端点不会生效。
from src.api.healthz import router as healthz_router+app.include_router(healthz_router)deploy.sh 未更新:当前 deploy.sh 的 HEALTH_URL 指向
/api/daemon/status(复杂端点,含数据库查询)。既然新增了轻量端点/api/healthz,应考虑是否更新 deploy.sh 使用新端点。建议:补完 main.py 注册后再 Approve。deploy.sh 更新作为可选。
Pull request closed