mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-19 14:44:44 +01:00
fix: auto-clear stale heartbeat when process is dead
Add PID to heartbeat file. eval-watch checks process.kill(pid, 0) and auto-deletes the heartbeat when the PID is no longer alive — no manual cleanup needed after crashed/killed E2E runs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
43fbe165a4
commit
4e31acbd47
2 files changed
+21
-1
No files matched your search
@@ -216,6 +216,7 @@ export async function runSkillTest(options: {
|
||||
const toolDesc = `${item.name}(${truncate(JSON.stringify(item.input || {}), 60)})`;
|
||||
atomicWriteSync(HEARTBEAT_PATH, JSON.stringify({
|
||||
runId,
|
||||
pid: proc.pid,
|
||||
startedAt,
|
||||
currentTest: testName,
|
||||
status: 'running',
|
||||
|
||||
Reference in new issue
Block a user