Exponential backoff for Add-On watchdog #743
Replies: 2 comments 3 replies
-
|
I just had this issue myself (not enough restart tries when I'm updating my router and have a little network downtime). I did some research on how I can fix this, I found this https://www.zigbee2mqtt.io/guide/installation/15_watchdog.html Now I can not say for sure that this fixes it, I don't want to take my network offline to try, but I believe this should be what I want? |
Beta Was this translation helpful? Give feedback.
-
|
Home Assistant allows you to control add-ons using switches and others, so you can write automations that will keep your add-on running. You don't have to use the built-in watchdog. I doubt such a change will be added to the core, because each application may actually require a different retry policy. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature
I would like the incremental backoff concept to be applied to the Add-On watchguard. So instead of trying to start an Add-On only a couple of times, then stop when it keeps failing, it should be retried forever, extending the retry-delay each time (or maybe starting this logic after trying regularly for X times).
Use cases
We use HA at our company with an SLZB-06 over TCP with PoE. We did some work on our Network Infrastructure, which included disrupting the connection from HA to the device. Z2M noticed the dropped connection, and the Add-On was restarted 10 times, but eventually failed and ended up in the stopped state.
If the watchdog would have retried for longer, our Zigbee Network wouldn't have been down, preventing some of our automations from running.
Here's what happened from Z2Ms perspective. At 12:17:30 I started the Add-On manually, because I noticed it being stopped.
Current workarounds
For now I have set up an automation which monitors the state of the Add-On and sends a notification so I can take care of this manually.
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions