Summary
Inbound media files (images, audio, video, documents) accumulate on disk without cleanup. Add periodic maintenance to clean up all media files, not just expired session media.
Motivation
The gateway stores inbound media files for processing but never removes them after use. Over time this causes unbounded disk growth, especially for audio/video-heavy channels like Signal and WhatsApp.
Implementation
PR: #24519
- Add configurable media cleanup interval and retention period
- Clean all media file types during gateway maintenance cycles
- Add server maintenance tests
Summary
Inbound media files (images, audio, video, documents) accumulate on disk without cleanup. Add periodic maintenance to clean up all media files, not just expired session media.
Motivation
The gateway stores inbound media files for processing but never removes them after use. Over time this causes unbounded disk growth, especially for audio/video-heavy channels like Signal and WhatsApp.
Implementation
PR: #24519