Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dedicated_sidekiq_queue.rb « concerns « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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