Skip to content

feat(db): write a periodic heartbeat to keep the database active - #17

Merged
AESMatias merged 1 commit into
mainfrom
feat/project-skeleton
Sep 26, 2026
Merged

AESMatias merged 1 commit into
mainfrom
feat/project-skeleton

Conversation

@AESMatias

Copy link
Copy Markdown
Owner

A new Celery beat task, database_heartbeat, rewrites the single row of a new heartbeat table (migration 0007, row level security on) every six hours, so the database always shows a recent write even on days when nobody signs in or uploads anything. Six hours rather than a day because the beat schedule restarts with the worker on every deploy.

A new Celery beat task, database_heartbeat, rewrites the single row of
a new heartbeat table (migration 0007, row level security on) every
six hours, so the database always shows a recent write even on days
when nobody signs in or uploads anything. Six hours rather than a day
because the beat schedule restarts with the worker on every deploy.
@AESMatias
AESMatias merged commit 04fb5df into main Sep 26, 2026
4 checks passed
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