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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/sidekiq_config/dummy_worker.rb')
-rw-r--r--lib/gitlab/sidekiq_config/dummy_worker.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/gitlab/sidekiq_config/dummy_worker.rb b/lib/gitlab/sidekiq_config/dummy_worker.rb
index 7568840410b..ef0dce0cf84 100644
--- a/lib/gitlab/sidekiq_config/dummy_worker.rb
+++ b/lib/gitlab/sidekiq_config/dummy_worker.rb
@@ -4,9 +4,9 @@ module Gitlab
module SidekiqConfig
# For queues that don't have explicit workers - default and mailers
class DummyWorker
- attr_accessor :queue
-
ATTRIBUTE_METHODS = {
+ queue: :queue,
+ name: :name,
feature_category: :get_feature_category,
has_external_dependencies: :worker_has_external_dependencies?,
urgency: :get_urgency,
@@ -16,8 +16,7 @@ module Gitlab
tags: :get_tags
}.freeze
- def initialize(queue, attributes = {})
- @queue = queue
+ def initialize(attributes = {})
@attributes = attributes
end