зеркало из https://github.com/github/octobox.git
Only require sidekiq-scheduler gem if if sidekiq_schedule_enabled? (#1737)
This commit is contained in:
Родитель
d9e221fe40
Коммит
9b39caaf17
2
Gemfile
2
Gemfile
|
@ -23,7 +23,7 @@ gem 'git'
|
|||
gem 'rgb'
|
||||
gem 'sidekiq'
|
||||
gem 'sidekiq-unique-jobs'
|
||||
gem 'sidekiq-scheduler'
|
||||
gem 'sidekiq-scheduler', require: false
|
||||
gem 'rack-canonical-host'
|
||||
gem 'sidekiq-status'
|
||||
gem 'gemoji', require: false
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
if Octobox.background_jobs_enabled?
|
||||
require 'sidekiq-scheduler'
|
||||
require 'sidekiq-scheduler' if Octobox.config.sidekiq_schedule_enabled?
|
||||
require 'sidekiq-status'
|
||||
|
||||
Sidekiq.configure_server do |config|
|
||||
|
|
Загрузка…
Ссылка в новой задаче