From 3b7c5f8ec0035baac7449f5dcbcf398faf579158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Misty=20De=20M=C3=A9o?= Date: Wed, 5 Mar 2025 23:32:51 -0800 Subject: [PATCH] sidekiq: disable update checker (#1368) This is configured to look for upstream Mastodon updates, so it isn't actually doing anything useful for Hometown admins. Eventually it can be turned back on if there's a Hometown-specific API that returns the appropriate versions, but in the meantime this feature is misleading. Looking at the sidekiq-scheduler docs, I think this should be enough to turn it off: https://github.com/sidekiq-scheduler/sidekiq-scheduler?tab=readme-ov-file#schedule-configuration I also disabled it in the place where upstream Mastodon configures the feature to be on or off: https://docs.joinmastodon.org/admin/upgrading/#automated_checks Fixes #1367. --- app/models/software_update.rb | 2 +- config/sidekiq.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/software_update.rb b/app/models/software_update.rb index cb3a6df2a..329093fa8 100644 --- a/app/models/software_update.rb +++ b/app/models/software_update.rb @@ -24,7 +24,7 @@ class SoftwareUpdate < ApplicationRecord class << self def check_enabled? - ENV['UPDATE_CHECK_URL'] != '' + false end def pending_to_a diff --git a/config/sidekiq.yml b/config/sidekiq.yml index 8c9481c05..76658a375 100644 --- a/config/sidekiq.yml +++ b/config/sidekiq.yml @@ -62,6 +62,7 @@ interval: 30 minutes class: Scheduler::SoftwareUpdateCheckScheduler queue: scheduler + enabled: false auto_close_registrations_scheduler: interval: 1 hour class: Scheduler::AutoCloseRegistrationsScheduler