feat(server): readiness 与作业统计可观测性(E11)
- 新增 /ready(DB 探活失败返回 503) - OCR 作业输出 claimed/available/duplicate/failed 统计 - README 补充 /health 与 /ready 说明
这个提交包含在:
+10
@@ -71,6 +71,16 @@ cd /home/shunli/Projects/hyb-oa/server
|
||||
./scripts/smoke-test.sh
|
||||
```
|
||||
|
||||
也可直接探活:
|
||||
```bash
|
||||
curl -fsS http://127.0.0.1:3000/health
|
||||
curl -fsS http://127.0.0.1:3000/ready
|
||||
```
|
||||
|
||||
说明:
|
||||
- `/health`:liveness(不查 DB)
|
||||
- `/ready`:readiness(`SELECT 1` 探活 DB,失败返回 503)
|
||||
|
||||
---
|
||||
|
||||
## 4. 回归入口
|
||||
|
||||
在新工单中引用
屏蔽一个用户