Skip to content

fix(media): periodic cleanup for all inbound media files #33078

@heyhudson

Description

@heyhudson

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions