Skip to content

Allow the watchdog to continue restarting an app indefinitely - #7062

Draft
puddly wants to merge 1 commit into
home-assistant:mainfrom
puddly:puddly/infinite-watchdog
Draft

Allow the watchdog to continue restarting an app indefinitely#7062
puddly wants to merge 1 commit into
home-assistant:mainfrom
puddly:puddly/infinite-watchdog

Conversation

@puddly

@puddly puddly commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Proposed change

This PR introduces watchdog_restart_policy, defaulting to rate_limited. Setting watchdog_restart_policy: unlimited for an app allows Supervisor to continue restarting the app indefinitely.

This is useful for OTBR and Ziggurat (and others), since they provide interfaces to hardware that Home Assistant expects to exist at all times. Otherwise, the app will just be in a stopped state even if the watchdog is enabled, which (in my opinion) somewhat contradicts the purpose of a watchdog.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (which adds functionality to the supervisor)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:
  • Link to cli pull request:
  • Link to client library pull request:

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • The code has been formatted using Ruff (ruff format supervisor tests)
  • Tests have been added to verify that the new code works.

If API endpoints or add-on configuration are added/changed:

@agners

agners commented Jul 28, 2026

Copy link
Copy Markdown
Member

I don't like having an unbounded retry, some apps download something during startup, this can load infrastructure if instances are left unmaintained with apps in the watchdog loop.

There is probably also a better alternative: Supervisor nowadays also takes Docker health check into account. It might be the better option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants