mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-24 09:36:31 +00:00
Relax check_system_runtime timeout to 10 seconds (#3037)
Probably related to https://github.com/home-assistant/plugin-observer/issues/22 Sometimes i notice my supervisor logs shows a random : WARNING (MainThread) [supervisor.misc.tasks] Watchdog/Application found a problem with observer plugin! i believe the cause to be related to the timeout being too short on a "busy" system, thus my proposal to relax it to 10 seconds.
This commit is contained in:
parent
0899c16895
commit
49fbdedf6b
@ -161,7 +161,7 @@ class PluginObserver(PluginBase):
|
||||
async def check_system_runtime(self) -> bool:
|
||||
"""Check if the observer is running."""
|
||||
try:
|
||||
timeout = aiohttp.ClientTimeout(total=5)
|
||||
timeout = aiohttp.ClientTimeout(total=10)
|
||||
async with self.sys_websession.get(
|
||||
f"http://{self.sys_docker.network.observer!s}/ping", timeout=timeout
|
||||
) as request:
|
||||
|
Loading…
x
Reference in New Issue
Block a user