Merge pull request #2122 from ajnart/fix/app-ping-retry-interval
This commit is contained in:
@@ -108,18 +108,11 @@ const usePing = (app: AppType) => {
|
|||||||
configName: name ?? '',
|
configName: name ?? '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
retry: true,
|
retry: false,
|
||||||
enabled: isActive,
|
enabled: isActive,
|
||||||
refetchOnWindowFocus: false,
|
refetchOnWindowFocus: false,
|
||||||
refetchInterval: 1000 * 60,
|
refetchInterval: 1000 * 60,
|
||||||
retryDelay(failureCount, error) {
|
cacheTime: 1000 * 30,
|
||||||
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,
|
|
||||||
retryOnMount: true,
|
retryOnMount: true,
|
||||||
select: (data) => {
|
select: (data) => {
|
||||||
const isOk = isStatusOk(app, data.status);
|
const isOk = isStatusOk(app, data.status);
|
||||||
|
|||||||
Reference in New Issue
Block a user