I need to add a job to the Sidekiq queue when my Rails app starts, to update some data, but I don't know where is the best place to do it.
Right now, I've wrote this on my
class Application < Rails::Application
A better solution would be to create an initializer
Sidekiq.configure_client do |config| Rails.application.config.after_initialize do # You code goes here end end