Skip to content

Commit

Permalink
fix: app ping retry interval
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-rw committed Sep 4, 2024
1 parent 6a7532b commit 993739a
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 993739a

Please sign in to comment.