Features
- Scheduled daily cleanup of expired data (configurable)
- Handles deletion of files from Minio storage
- Cleans up related database entries
- Supports manual triggering of cleanup jobs
- Maintains proper logging of cleanup activities
Configuration
The service can be configured using environment variables:CLEANUP_SCHEDULE: Cron expression for the cleanup schedule (default:0 0 * * *- midnight every day)LOG_LEVEL: Set the logging level (default:INFO)
Endpoints
GET /healthz: Health check endpoint for Docker healthcheckGET /: Service informationPOST /trigger-cleanup: Manually trigger a cleanup job