fix(analytics): run_full水位前置防回填窗口漏扫+README/DEPLOY/脚本号收尾

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-04 23:27:41 +08:00
parent 0fad1b09bb
commit 8499a74a72
5 changed files with 63 additions and 10 deletions
+9 -1
View File
@@ -86,6 +86,14 @@ python -m app.sync.cli sync --entity friends # one entity
python -m app.sync.cli --help # full usage
```
One-shot analytics backfills / self-heal (all idempotent):
```bash
python -m app.sync.cli daily-stats # msg_daily_stats 日汇总全量重建
python -m app.sync.cli staff-daily-stats # 员工日汇总(stat_daily_staff)全量重建
python -m app.sync.cli sensitive-scan --full # 敏感词全量回填+建扫描水位(首跑必须 --full)
```
### Docker mode (full stack)
```bash
@@ -176,7 +184,7 @@ Entity names accepted by `sync --entity` and `run_once`:
## Verification
```bash
cd yunke-server && .venv/Scripts/python.exe -m pytest -q # 323 tests
cd yunke-server && .venv/Scripts/python.exe -m pytest -q # 574 tests
cd yunkes && npm run build # clean production build
cd yunke-server && python -m app.sync.cli --help # CLI usage
docker compose config # validates the stack