diaspora/app/workers/reset_password.rb
Jason Robinson 78299c9e2f Consolidate amount of sidekiq queues from 13 to 5
Sidekiq documentation says 'Sidekiq is not designed to work well with dozens of queues.'. Having the amount of queues we have at the moment brings no anyway.

Closes #5571
2016-08-10 08:51:22 +00:00

9 lines
182 B
Ruby

module Workers
class ResetPassword < Base
sidekiq_options queue: :urgent
def perform(user_id)
User.find(user_id).send_reset_password_instructions!
end
end
end