mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-23 07:52:18 +01:00
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 ?? '',
|
||||
},
|
||||
{
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user