From 993739ab8ea1b07cf2e6c550e8640b92c18692d0 Mon Sep 17 00:00:00 2001 From: Manuel <30572287+manuel-rw@users.noreply.github.com> Date: Tue, 3 Sep 2024 18:34:34 +0200 Subject: [PATCH] fix: app ping retry interval --- src/components/Dashboard/Tiles/Apps/AppPing.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/components/Dashboard/Tiles/Apps/AppPing.tsx b/src/components/Dashboard/Tiles/Apps/AppPing.tsx index 4b3e4a4b8af..7afabf67392 100644 --- a/src/components/Dashboard/Tiles/Apps/AppPing.tsx +++ b/src/components/Dashboard/Tiles/Apps/AppPing.tsx @@ -108,18 +108,11 @@ const usePing = (app: AppType) => { configName: name ?? '', }, { - retry: true, + retry: false, enabled: isActive, refetchOnWindowFocus: false, refetchInterval: 1000 * 60, - retryDelay(failureCount, error) { - console.error(`Unable to retry app ping for app '${app.name}' (${app.id})`, error); - if (failureCount > 3) { - return 60 * 1000; - } - return 3 * 1000; - }, - cacheTime: 1000 * 60, + cacheTime: 1000 * 30, retryOnMount: true, select: (data) => { const isOk = isStatusOk(app, data.status);