cdnTries = $cdnTries; } /** * @return bool Whether the check finished and new_version_available is up to date */ public function handle(): bool { try { if (isDev() || isCloud()) { return false; } AutoUpdateNotifier::checkResult(); $versions = refresh_versions_file($this->cdnTries); if ($versions === null) { return false; } CheckTraefikVersionJob::dispatch(); $latestVersion = data_get($versions, 'coolify.version'); $newVersionAvailable = instanceSettings()->update_channel !== 'custom' && version_compare($latestVersion, config('constants.coolify.version'), '>'); instanceSettings()->update(['new_version_available' => $newVersionAvailable]); return true; } catch (\Throwable $e) { Log::warning('Could not check for Coolify updates', ['error' => $e->getMessage()]); return false; } } }