Skip to content

Commit 993739a

Browse files
committed
fix: app ping retry interval
1 parent 6a7532b commit 993739a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/components/Dashboard/Tiles/Apps/AppPing.tsx

+2-9
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,11 @@ const usePing = (app: AppType) => {
108108
configName: name ?? '',
109109
},
110110
{
111-
retry: true,
111+
retry: false,
112112
enabled: isActive,
113113
refetchOnWindowFocus: false,
114114
refetchInterval: 1000 * 60,
115-
retryDelay(failureCount, error) {
116-
console.error(`Unable to retry app ping for app '${app.name}' (${app.id})`, error);
117-
if (failureCount > 3) {
118-
return 60 * 1000;
119-
}
120-
return 3 * 1000;
121-
},
122-
cacheTime: 1000 * 60,
115+
cacheTime: 1000 * 30,
123116
retryOnMount: true,
124117
select: (data) => {
125118
const isOk = isStatusOk(app, data.status);

0 commit comments

Comments
 (0)