69068e2e39
部署对齐三项后端能力:启动/周期收尾僵尸批量任务、30 天推送日志 purge、已安装且版本不低于主站时跳过批量安装 Agent。 Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
1.1 KiB
Markdown
34 lines
1.1 KiB
Markdown
# 2026-06-08 — 全量对齐部署
|
|
|
|
## 摘要
|
|
|
|
合并本会话三项后端能力并推生产:server_batch 僵尸回收 + stuck 扫描、sync_logs 30 天 purge、批量安装 Agent 已安装且版本足够则跳过;Docker 镜像重建同步前端(Settings 422、调度表单等已 commit 源码)。
|
|
|
|
## 动机
|
|
|
|
本地 `a401ea5` 与生产后端部分对齐,但缺 #1/#3、agent 跳过逻辑;生产前端 bundle 落后于 git 源码。
|
|
|
|
## 涉及文件
|
|
|
|
- `server/main.py` · `server_batch_*` · `sync_log_*` · `agent_version.py` · `servers.py`
|
|
- `tests/test_agent_version.py` · `test_server_batch_reconcile.py` · `test_sync_log_purge.py`
|
|
- 计划/审计:`docs/design/plans/2026-06-08-*.md` · `docs/audit/2026-06-08-full-align-deploy.md`
|
|
|
|
## 迁移 / 重启
|
|
|
|
- 无 schema 变更;API 重启 + Docker `nexus-1panel.sh upgrade`
|
|
|
|
## 验证
|
|
|
|
```bash
|
|
bash deploy/pre_deploy_check.sh
|
|
bash deploy/deploy-production.sh
|
|
curl https://api.synaglobal.vip/health
|
|
```
|
|
|
|
## 生产预期
|
|
|
|
- 启动日志含 `recover_orphaned` / `sync_log_purge` / `server_batch_reconcile`
|
|
- `/app/index.html` 新 bundle 哈希
|
|
- 批量安装已装 2.0.0 子机显示「已跳过」
|