fix(orchestrator): run the tree timer a minute after each run
Root cause: a pkgmgr branch tree run takes 72.6 s real (55.5 s user) on this host, while TimeoutStartSec=55 killed every run; the timer fired again each minute, so the service burned a core and branch-tree.json never appeared. - kvb-orchestrator-tree.timer: OnActiveSec=30s plus OnUnitInactiveSec=60s instead of OnCalendar=minutely, so runs never overlap and the next one starts 60 s after the last ended. - kvb-orchestrator-tree.service: TimeoutStartSec=600 and CPUQuota=50%. - orchestrator.sh restarts the timer on install so the new schedule takes effect; README and requirement 001 follow. 🎯 Fix: 92 % 💥 Break: 4 % 💸 Cost: 100 % ⏱️ Time: – 🛡️ Security: 100 % 🏆 Score: 88 🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 % Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c1310c3322
commit
09f68dd75b
5 files changed
+11
-7
No files matched your search
@@ -225,7 +225,8 @@ tree_timer() {
|
||||
cp -f "${HUB}/systemd/${TREE_UNIT}.service" "${HUB}/systemd/${TREE_UNIT}.timer" "${HUB}/systemd/${CLEANUP_UNIT}.service" "${HUB}/systemd/${CLEANUP_UNIT}.path" "${UNITS}/"
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user enable --now "${TREE_UNIT}.timer" "${CLEANUP_UNIT}.path"
|
||||
log "skills: ${TREE_UNIT}.timer writes ${TREE_DIR}/branch-tree.json every 60 s while the Agent Orchestrator page polls"
|
||||
systemctl --user restart "${TREE_UNIT}.timer"
|
||||
log "skills: ${TREE_UNIT}.timer writes ${TREE_DIR}/branch-tree.json a minute after each run while the Agent Orchestrator page polls"
|
||||
log "skills: ${CLEANUP_UNIT}.path deletes the merged branches the operator signs in the Artifacts Tree, locally only"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user