Files
Will Schroeder 6525ce7140 SeaweedFS (#107)
Replace Minio backend storage with SeaweedFS (as Minio has been deprecated).
2026-03-06 15:27:12 -08:00
..
2026-03-06 15:27:12 -08:00
2026-01-14 15:20:31 -08:00
2026-03-06 15:27:12 -08:00

Housekeeping Service

A microservice for the Nemesis platform that handles the automated cleanup of expired files and database entries.

Purpose

This service periodically checks for files and database entries that have passed their expiration date and removes them from both the SeaweedFS storage and the database tables. This helps maintain system performance and ensures compliance with data retention policies.

Features

  • Scheduled daily cleanup of expired data (configurable)
  • Handles deletion of files from SeaweedFS 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 healthcheck
  • GET /: Service information
  • POST /trigger-cleanup: Manually trigger a cleanup job