Files
Nexus/docs/audit/2026-06-08-full-align-deploy.md
T
Nexus Agent 69068e2e39 feat(ops): server_batch 回收、sync_logs 清理与 Agent 安装跳过
部署对齐三项后端能力:启动/周期收尾僵尸批量任务、30 天推送日志 purge、已安装且版本不低于主站时跳过批量安装 Agent。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-08 15:23:03 +08:00

1.0 KiB
Raw Blame History

审计 — 全量对齐部署(batch 回收 / sync purge / agent 跳过)

Changelog: docs/changelog/2026-06-08-full-align-deploy.md

变更文件

main.py · servers.py · server_batch_common.py · server_batch_service.py · server_batch_store.py · server_batch_job_repo.py · sync_log_repo.py · server_batch_reconcile.py · sync_log_purge.py · agent_version.py · test_agent_version.py · test_server_batch_reconcile.py · test_sync_log_purge.py

Step 3

结论
启动回收仅 primary worker,无静默吞错 PASS
sync_logs purge 批量 DELETEretention=30d PASS
批量安装跳过:版本 SSOT 来自 agent.pySSH 探测有超时 PASS
install 跳过不计入失败,lower 版本仍执行 install.sh PASS

Closure

Gate 7/7 PASS · 生产全量对齐部署

DoD

  • pytest 新增用例通过
  • local_verify 26/26
  • 生产 /health + /app/ 200
  • 容器内 recover_orphaned / sync_log_purge 标记存在