blob: 132bae6022b4c1da9bb22ba986ab139049c5d00a (
plain)
1
2
3
4
5
6
7
8
9
|
# Concern that sets the queue of a Sidekiq worker based on the worker's class
# name/namespace.
module DedicatedSidekiqQueue
extend ActiveSupport::Concern
included do
sidekiq_options queue: name.sub(/Worker\z/, '').underscore.tr('/', '_')
end
end
|