Skip to content

feat(queen): enhance PID file with heartbeat tracking + JSON state#543

Merged
gHashTag merged 1 commit into
mainfrom
feat/430-queen-daemon-supervisor
Apr 29, 2026
Merged

feat(queen): enhance PID file with heartbeat tracking + JSON state#543
gHashTag merged 1 commit into
mainfrom
feat/430-queen-daemon-supervisor

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Summary

Phase 1 of #430 — enhance queen daemon supervisor with proper PID tracking:

  • PID file now stores JSON: {"pid":12345,"started_at":1773945606,"heartbeat":1774273571,"restart_count":0}
  • Backward-compatible readPidState() handles both JSON and legacy plain-PID format
  • updateHeartbeat() for periodic timestamp refresh (call from supervisor loop)
  • showStatus() now displays heartbeat age (e.g. "5s ago")
  • isSupervisorRunning() refactored to use readPidState()

Refs #430 (Phase 1: PID File + Health Tracking)

…splay

- PID file now stores JSON with pid, started_at, heartbeat, restart_count
- Backward-compatible readPidState() handles legacy plain-PID format
- showStatus() displays heartbeat age (e.g. '5s ago')
- updateHeartbeat() for periodic timestamp refresh
- readPidState() parses JSON state for monitoring

Refs #430
@gHashTag gHashTag merged commit 4bfae21 into main Apr 29, 2026
9 of 19 checks passed
@gHashTag gHashTag deleted the feat/430-queen-daemon-supervisor branch April 29, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant