Files
ngit-grasp/nix
DanConwayDev f2a491b5cf Add background cleanup task for expired deletions
- Add archive_cleanup_interval_secs config option (default 24 hours)
- Update all 4 configuration sources (config.rs, .env.example, docs, nix module)
- Implement cleanup_archived_data() function in database/cleanup.rs
- Query holding database for expired events
- Delete archive tar.gz and metadata JSON files
- Delete events from holding database
- Add archive_path field to DeletionMetadata
- Spawn background cleanup task in main.rs
- Run cleanup on startup and periodically
- Add comprehensive unit tests for cleanup functionality
- Handle missing files gracefully
- Log all cleanup operations at info level
2026-01-14 11:56:08 +00:00
..