Browse Source

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.
v4.2.17+hometown-1.1.1
Misty De Méo 1 year ago committed by GitHub
parent
commit
3b7c5f8ec0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      app/models/software_update.rb
  2. 1
      config/sidekiq.yml

2
app/models/software_update.rb

@ -24,7 +24,7 @@ class SoftwareUpdate < ApplicationRecord
class << self class << self
def check_enabled? def check_enabled?
ENV['UPDATE_CHECK_URL'] != '' false
end end
def pending_to_a def pending_to_a

1
config/sidekiq.yml

@ -62,6 +62,7 @@
interval: 30 minutes interval: 30 minutes
class: Scheduler::SoftwareUpdateCheckScheduler class: Scheduler::SoftwareUpdateCheckScheduler
queue: scheduler queue: scheduler
enabled: false
auto_close_registrations_scheduler: auto_close_registrations_scheduler:
interval: 1 hour interval: 1 hour
class: Scheduler::AutoCloseRegistrationsScheduler class: Scheduler::AutoCloseRegistrationsScheduler

Loading…
Cancel
Save