Skip to content

feat: data retention policy for self-hosted - #141

Merged
lissy93 merged 2 commits into
mainfrom
feat/retention-and-compaction
Oct 13, 2026
Merged

lissy93 merged 2 commits into
mainfrom
feat/retention-and-compaction

Conversation

@lissy93

@lissy93 lissy93 commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Summary

This PR adds opt-in retention policies, which get run by the existing weekly cleanup job to delete historical change history and notification older than a certain date, to prevent DB from growing forever.

It can be enabled by setting these to env vars:

DL_HISTORY_RETENTION_DAYS=365
DL_NOTIFICATIONS_RETENTION_DAYS=90

Related

Fixes #140

Checklist

  • I've tested this change
  • I've followed the coding style and contribution guidelines
  • I've updated documentation (if needed)
  • I've confirmed this change is backwards compatible / won't break anything

@lissy93
lissy93 merged commit df24c5e into main Oct 13, 2026
12 checks passed
@lissy93
lissy93 deleted the feat/retention-and-compaction branch October 13, 2026 13:59
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.

[Feature Request]: Configurable retention for all historical data (domain change history, notifications) with auto-cleanup and SQLite space reclaim

1 participant