diff --git a/managed/services/server/updater.go b/managed/services/server/updater.go index 27728237612..f35246455db 100644 --- a/managed/services/server/updater.go +++ b/managed/services/server/updater.go @@ -45,7 +45,7 @@ import ( const ( pmmInitLog = "/srv/logs/pmm-init.log" - updateCheckInterval = 24 * time.Hour + updateCheckInterval = 12 * time.Hour updateCheckResultFresh = updateCheckInterval + 10*time.Minute updateDefaultTimeout = 30 * time.Second pmmEnvfilePath = "/home/pmm/update/pmm-server.env" diff --git a/ui/src/hooks/api/useUpdates.tsx b/ui/src/hooks/api/useUpdates.tsx index e879b0fe637..33b9ea12cbf 100644 --- a/ui/src/hooks/api/useUpdates.tsx +++ b/ui/src/hooks/api/useUpdates.tsx @@ -21,11 +21,11 @@ export const useCheckUpdates = ( queryKey: ['checkUpdates'], queryFn: async () => { try { - return await checkForUpdates(); + return await checkForUpdates({ force: true }); } catch (error) { if ((error as AxiosError).response?.status !== 401) { return await checkForUpdates({ - force: false, + force: true, onlyInstalledVersion: true, }); }