From 49fbdedf6b327a70ab9f5ea9b65936c337517ed2 Mon Sep 17 00:00:00 2001 From: foreign-sub <51928805+foreign-sub@users.noreply.github.com> Date: Sat, 21 Aug 2021 16:15:31 +0200 Subject: [PATCH] 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. --- supervisor/plugins/observer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisor/plugins/observer.py b/supervisor/plugins/observer.py index 4dda3c5b1..401b2cc7d 100644 --- a/supervisor/plugins/observer.py +++ b/supervisor/plugins/observer.py @@ -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: