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
12 lines
261 B
Ruby
12 lines
261 B
Ruby
module Workers
|
|
module Mail
|
|
class CommentOnPost < Base
|
|
sidekiq_options queue: :low
|
|
|
|
def perform(recipient_id, sender_id, comment_id)
|
|
Notifier.comment_on_post(recipient_id, sender_id, comment_id).deliver_now
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|