I have a rails app in which I have a method where I send a lot of emails. I would like to perform this action
bundle exec sidekiq
config.active_job.queue_adapter = :sidekiq
You need to bootup sidekiq with the mailer queue for it to pick up these jobs:
bundle exec sidekiq -q default -q mailers
The Sidekiq Wiki goes over the scenarios in detail here.