Skip to content

Container HEALTHCHECK and last-run status for orchestration #294

Description

@rfsbraz

Description

The Dockerfile ends at CMD ["python", "-m", "app.deleterr"] - no HEALTHCHECK. In scheduler mode there is no way for Docker/Unraid/k8s to detect a dead scheduler thread, a crashed-but-running container, or a string of failed runs. The run summary only goes to logs.

Proposed Behavior

  • Persist a small status file after every run attempt: timestamp, success/failure, libraries processed/failed, items deleted/tagged
  • Add a HEALTHCHECK script that fails when the process is unhealthy or the last successful run is older than N x the configured interval
  • The same status file gives dashboards/scripts something machine-readable to consume (a /metrics-style endpoint can build on it later)

Implementation Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions