Skip to content

Add live status/heartbeat: bot_heartbeat + status_snapshots tables, /… - #86

Merged
CodeMeAPixel merged 1 commit into
mainfrom
feat/status-heartbeat
Aug 26, 2026
Merged

Add live status/heartbeat: bot_heartbeat + status_snapshots tables, /…#86
CodeMeAPixel merged 1 commit into
mainfrom
feat/status-heartbeat

Conversation

@CodeMeAPixel

Copy link
Copy Markdown
Contributor

…api/health, /api/status/history

The webserver process never opens a Discord gateway connection, so /api/counts was always returning 0,0,0 (state.Discord.State was always nil). The bot process now upserts guild/member/shard counts into bot_heartbeat every minute, and the webserver reads that instead. A background snapshotter records periodic health checks into status_snapshots for uptime history.

…api/health, /api/status/history

The webserver process never opens a Discord gateway connection, so /api/counts
was always returning 0,0,0 (state.Discord.State was always nil). The bot process
now upserts guild/member/shard counts into bot_heartbeat every minute, and the
webserver reads that instead. A background snapshotter records periodic health
checks into status_snapshots for uptime history.
@CodeMeAPixel
CodeMeAPixel merged commit 96b779a into main Aug 26, 2026
6 checks passed
@CodeMeAPixel
CodeMeAPixel deleted the feat/status-heartbeat branch August 26, 2026 02:18
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