Ive just installed redis and sidekiq on my app,
I Have a job to update a field on the users table when called upon,
And a job that sends an email once a week to all users.
Now if i boot up sidekiq with bundle exec sidekiq
The job to update the users field fires off and completes but the email job stays in the enqueued section.
But if i boot it up with bundle exec sidekiq -q workers -q mailers
Which i got from the Sidekiq github page only the mail jobs get completed and the others stay in the enqueued section.
Is there a command to be able to run both? Ive only started to learn about sidekiq and redis yesterday so sorry if this a stupid question,
I have the activejob.que_adaptar
set to sidekiq
in application.rb.
This is how i have my sidekiq worker for the User job set up:
class DeactivateUser
include Sidekiq::Worker
def perform
User.active.update_all(active: false)
end
end
Thanks.