mirror of
https://github.com/garrytan/gstack.git
synced 2026-08-05 13:58:37 +02: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:
co-authored by
Claude Opus 4.6
parent
43fbe165a4
commit
4e31acbd47
@@ -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