Relative Content

Tag Archive for ruby-on-railsrubysidekiq

Why can’t I wrap Sidekiq.configure_server in Rails after_initialize?

After upgrade to Rails 6 the initializers/sidekiq.rb is causing deprecation warnings about class autoloading. As a workaround I thought I could wrap the contents of Sidekiq.configure_server in Rails.application.config.after_initialize. But after I do that, the job processor won’t process the jobs anymore. This is the part that is causing error: