Fix health check loop silently dying on uncaught exception

Wrap check_all() call inside the loop with try/except so a transient error
cannot exit the while-True and freeze all health statuses. Add transition
logging (HEALTHY / UNHEALTHY) so docker logs show when a service changes
state. Also add refetchIntervalInBackground on the frontend query so the
poll continues even when the browser tab is not focused.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
curo1305
2026-04-17 17:36:58 +02:00
parent 3248607790
commit 151773ab51
2 changed files with 26 additions and 6 deletions
+1
View File
@@ -32,6 +32,7 @@ export default function AppsPage() {
queryKey: ["services"],
queryFn: getServices,
refetchInterval: 30_000,
refetchIntervalInBackground: true,
});
return (