aa65f10c52
Audit docs:
- docs/reports/audit-phase-2{a-j}-line-walk.md: per-file line walk findings
- docs/reports/audit-phase-2-findings-matrix.md: 63 findings (52 fixed, 3 partial, 7 accepted)
- docs/reports/2026-05-23-full-audit-report.md: full audit consolidation
- docs/reports/audit-full-vs-phase2-reconciliation.md: cross-reference
- docs/reports/audit-phase-2-walk-closure.md: closure sign-off
Project docs:
- docs/project/phase-2-audit-remediation.md: SSOT for all fixes
- docs/project/alert-push-policy.md: dashboard alert design decisions
- docs/project/production-verification-checklist.md: first-deploy checklist
- docs/project/script-execution.md: script platform design
- docs/project/wsl-integration-test.md: WSL code-only verification guide
- docs/project/line-walk-audit-standard.md: audit methodology
- docs/project/mysql-mcp-setup.md: MCP config guide
Changelogs: 18 entries (2026-05-22 to 2026-05-23)
Project memory: CLAUDE.md, AGENTS.md updated to reflect current state
Deploy: nginx_https.conf template updated
Co-authored-by: Cursor <cursoragent@cursor.com>
1.1 KiB
1.1 KiB
Changelog — 脚本执行内置分批
日期: 2026-05-22
类型: 功能
上级索引: 2026-05-22-script-execution-platform.md
SSOT: docs/project/script-execution.md
变更摘要
一次可选全站服务器;超过 batch_size 时后端按批顺序执行,前端多轮 POST /exec 合并为一条页顶状态卡。
配置
| 项 | 默认 | 位置 |
|---|---|---|
NEXUS_SCRIPT_EXEC_BATCH_SIZE |
50 | .env / server/config.py |
NEXUS_SCRIPT_EXEC_CONCURRENCY |
10 | 同上 |
API / 前端
GET /api/scripts/exec-config→{ batch_size, concurrency }ScriptService.execute_command按批执行,批内Semaphore(concurrency)scripts.html:全选、分批提示、「第 x/y 批」、长任务勾选
涉及文件
server/config.pyserver/application/services/script_service.pyserver/api/scripts.pyweb/app/scripts.html
用法
- 一次可全选所有服务器;超过 50 台自动分多批
- 长任务:
timeout仅限制点火命令(建议 60~120s)