diff --git a/config/initializers/100-sidekiq.rb b/config/initializers/100-sidekiq.rb index 56588effb47..9311b1633f3 100644 --- a/config/initializers/100-sidekiq.rb +++ b/config/initializers/100-sidekiq.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Ensure that scheduled jobs are loaded before mini_scheduler is configured. -if Rails.env == "development" && Sidekiq.server? +if Rails.env == "development" require "jobs/base" Dir.glob("#{Rails.root}/app/jobs/scheduled/*.rb") do |f|