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:
Connection Sidekiq/Redis fail with code WSAENOPROTOOPT
I am building an Ruby on Rails app that rely on Sidekiq. This app run on a windows server VM and and Redis run on a Debian 11 VM.