chore: keep agent run worker alive during gray rollout

This commit is contained in:
Your Name
2026-07-02 11:54:29 +08:00
parent c0f922b5f8
commit 79d310ba29
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -174,6 +174,8 @@ bash /Users/john/Project/Memind/scripts/install-agent-run-worker-agent.sh
MEMIND_AGENT_RUN_WORKER_EXPECT_RUNNING=1 node /Users/john/Project/Memind/scripts/check-agent-run-worker.mjs
```
The worker LaunchAgent must have `KeepAlive=true` during all-user gray so a clean worker exit does not leave code-run queue processing stopped.
8. Submit only code runs with validation metadata.
Required user message metadata:
@@ -2099,7 +2099,7 @@ installer 默认行为:
- `/Users/john/Library/LaunchAgents/cn.tkmind.memind-agent-run-worker.plist`
- 默认:
- `RunAtLoad=false`
- `KeepAlive=false`
- `KeepAlive=true`
- `launchctl disable`
-`kickstart`
- 默认环境:
@@ -2640,6 +2640,7 @@ runtime/status:
备份:
- `/Users/john/Project/memind_backups/20260702-114335-p615-validation-metadata`
- worker KeepAlive 运维补强备份: `/Users/john/Project/memind_backups/20260702-115330-worker-keepalive`
## 回滚策略
+1 -1
View File
@@ -49,7 +49,7 @@ cat > "$PLIST" <<EOF
<key>RunAtLoad</key>
<false/>
<key>KeepAlive</key>
<false/>
<true/>
<key>ThrottleInterval</key>
<integer>10</integer>
<key>StandardOutPath</key>