feat: admin database page with purge, vacuum, and backup#380
Merged
Conversation
…_worker Add /admin/database page with: - Purge: NULL out run_track_activity_jsonl for older rows with radio buttons showing MB savings per retention level (10-500) - Vacuum: run VACUUM FULL task_item to reclaim disk space - Backup: download a compressed pg_dump via the new database_worker service (uses zstd when available, falls back to gzip) Add database_worker Docker service with postgresql-client that runs pg_dump directly, avoiding gunicorn timeout issues. Frontend proxies the stream with admin auth. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/admin/databasepage with purge, vacuum, and backup actionsdatabase_workerDocker service that runspg_dumpdirectly (uses zstd compression when available, falls back to gzip)database_worker, keeping admin authrun_track_activity_jsonlfor older rows with radio buttons showing MB savings per retention levelVACUUM FULL task_itemto reclaim disk space after purgingTest plan
/admin/database— page loads with size info, purge options, vacuum, and backup button.sql.zstor.sql.gzfilepsql < backup.sql(after decompressing)🤖 Generated with Claude Code