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
17 lines
416 B
Ruby
17 lines
416 B
Ruby
# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
|
# licensed under the Affero General Public License version 3 or later. See
|
|
# the COPYRIGHT file.
|
|
|
|
|
|
module Workers
|
|
module Mail
|
|
class StartedSharing < Base
|
|
sidekiq_options queue: :low
|
|
|
|
def perform(recipient_id, sender_id, target_id)
|
|
Notifier.started_sharing(recipient_id, sender_id).deliver_now
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|