mirror of
https://github.com/yusufipk/RepoHub.git
synced 2026-09-11 10:36:07 +00:00
feat: add package pruning system with configurable grace periods
- Implemented automatic pruning of stale packages across all platform sync endpoints (Arch, AUR, Debian, Ubuntu, Fedora, Homebrew, Winget) - Added `last_seen_at` tracking to mark packages as seen during sync runs and identify inactive packages - Introduced `PRUNE_GRACE_DAYS` and `PRUNE_HARD_DELETE_DAYS` environment variables for configurable soft-delete and hard-delete thresholds
This commit is contained in:
@@ -24,3 +24,8 @@ SYNC_SERVER_ONLY=false
|
||||
AUTO_SYNC_DAYS=1
|
||||
# Secret key to authorize sync operations from server
|
||||
SYNC_SECRET_KEY=your_sync_secret_key_here
|
||||
|
||||
# Prune Configuration
|
||||
# Number of days to wait before pruning packages
|
||||
PRUNE_GRACE_DAYS=7
|
||||
PRUNE_HARD_DELETE_DAYS=1
|
||||
Reference in New Issue
Block a user