mirror of
https://github.com/tradecatlabs/vibe-coding-cn.git
synced 2026-08-18 21:38:05 +00:00
feat: skills - add auto-tmux stale lock pruning
This commit is contained in:
@@ -206,6 +206,12 @@ skills/auto-tmux/scripts/swarm-state.sh task-fail --id task-001 --owner "ai-hub:
|
||||
skills/auto-tmux/scripts/swarm-state.sh lock-acquire --name README.md --owner "ai-hub:2.1"
|
||||
```
|
||||
|
||||
回收过期锁前先 dry-run:
|
||||
|
||||
```bash
|
||||
skills/auto-tmux/scripts/swarm-state.sh lock-prune --older-than 3600 --dry-run
|
||||
```
|
||||
|
||||
完成任务并生成报告:
|
||||
|
||||
```bash
|
||||
|
||||
@@ -141,7 +141,15 @@ skills/auto-tmux/scripts/swarm-state.sh lock-release \
|
||||
skills/auto-tmux/scripts/swarm-state.sh lock-list
|
||||
```
|
||||
|
||||
清理过期锁前先演练:
|
||||
|
||||
```bash
|
||||
skills/auto-tmux/scripts/swarm-state.sh lock-prune --older-than 3600 --dry-run
|
||||
skills/auto-tmux/scripts/swarm-state.sh lock-prune --older-than 3600
|
||||
```
|
||||
|
||||
锁使用 `mkdir` 创建目录,具备基本原子性。若锁归属不匹配,默认拒绝释放;确需人工回收时才使用 `--force`。
|
||||
`lock-prune` 用于 worker 崩溃或会话中断后的过期锁回收,必须先 `--dry-run` 确认目标。
|
||||
|
||||
## 报告
|
||||
|
||||
|
||||
Reference in New Issue
Block a user