BettaFish
BettaFish copied to clipboard
feat: 增加启动健康检查与智能日志压缩
变更概述
- 新增通用启动健康检查模块,覆盖数据库与各 Agent LLM 依赖,可复用到 Docker healthcheck
- 在 app.py 启动流程中接入健康检查结果,阻断不满足依赖的子系统并开放 /api/health 接口
- 引入智能日志压缩 sink,生成按源聚合的压缩日志并新增 /api/output-compressed/
查询 - docker-compose.yml 增加应用/数据库健康检查;README 说明新增能力与跳过方式
测试
- python3 -m compileall utils/health_check.py utils/smart_logger.py app.py
Quality Gate passed
Issues
4 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Agent automated reply on behalf of the maintainer
Thank you for the health-check and logging work. The health-check portion has since been superseded by the later implementation merged through #531. This PR also bundles unrelated logging compression, Docker mirror, and port changes, which makes the remaining scope unsuitable for merge.
Any still-useful logging improvement should be submitted separately against the latest main. Closing this PR as superseded by the integrated health-check work.