Skip to content

Application shutdown shouldn't fail healthchecks #1473

@com6056

Description

@com6056

Support guidelines

I've found a bug and checked that ...

  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

Right now, application shutdown triggers healthcheck failures which leads to notifications:

di.HealthchecksFail("Application closed")

This includes things like simply restarting diun, which probably shouldn't notify.

Expected behaviour

I would expect healthcheck failures to only trigger when there is an issue running diun (or when diun hasn't run in a certain amount of time, which healthchecks.io already handles for you).

Actual behaviour

healthchecks.io notifies you of a diun failure whenever you restart diun.

Steps to reproduce

  1. Restart diun
  2. Get a healthchecks.io failure notification

Diun version

v4.29.0

Docker info

N/A

Docker Compose config

Logs

Fri, 08 Aug 2025 23:53:28 UTC WRN Caught signal terminated

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions