diaspora/app/workers/mail/also_commented.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

14 lines
299 B
Ruby

module Workers
module Mail
class AlsoCommented < Base
sidekiq_options queue: :low
def perform(recipient_id, sender_id, comment_id)
if email = Notifier.also_commented(recipient_id, sender_id, comment_id)
email.deliver_now
end
end
end
end
end