Skip to content

Commit

Permalink
Merge pull request #2122 from ajnart/fix/app-ping-retry-interval
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-rw authored Sep 29, 2024
2 parents ddde999 + 993739a commit 4bba516
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/components/Dashboard/Tiles/Apps/AppPing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4bba516

Please sign in to comment.