We've moved discussions to Discord

looking for some help with sidekiq

Jamie Crone
I added sidekiq to my app using the jumpstart getting started wizard. Since I had done this none of my jobs are running they just show in the sidekiq as enqueued. I figured the account invites would be working with sidekiq out of the box. I did not change anything. Anyone have an idea of what I might be missing

[ActiveJob] Enqueued ActionMailer::MailDeliveryJob (Job ID: 5ee7f293-42df-456d-8d97-78879e052cbc) to Sidekiq(mailers) with arguments: "AccountInvitationsMailer", "invite", "deliver_now", {:params=>{:account_invitation=>#<GlobalID:0x00007fd74c334868 @uri=#<URI::GID gid://jumpstart-app/AccountInvitation/17>>}, :args=>[]}
Redirected to http://localhost:3000/accounts/44
Completed 200 OK in 23ms (ActiveRecord: 3.6ms | Allocations: 9894)

image.png 65.7 KB
Chris Oliver
Mailers are sent on the mailers queue, so make sure Sidekiq is processing that queue.
Jamie Crone
In my config/sidekiq.yml file  I have this
Not sure if I need it somewhere else 
:queues:
  - critical
  - default
  - <%= `hostname`.strip %>
  - mailers
  - low
Jamie Crone
Ok got it! Thanks for the help
Had to run and it worked. 
bundle exec sidekiq -q default -q mailers

Chris Oliver
Jamie Crone Sidekiq should use that config file by default if you just run bundle exec sidekiq

I'm not sure if specifying queues on the CLI overrides the queues in the config, but I would assume it does.
Notifications
You’re not receiving notifications from this thread.