Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion managed/services/server/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions ui/src/hooks/api/useUpdates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
Expand Down
Loading