summaryrefslogtreecommitdiff
path: root/app/workers/concerns/application_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/concerns/application_worker.rb')
-rw-r--r--app/workers/concerns/application_worker.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/workers/concerns/application_worker.rb b/app/workers/concerns/application_worker.rb
index e158ae0c298..6cc6c30c5e9 100644
--- a/app/workers/concerns/application_worker.rb
+++ b/app/workers/concerns/application_worker.rb
@@ -54,6 +54,10 @@ module ApplicationWorker
subclass.after_set_class_attribute { subclass.set_queue }
end
+ def generated_queue_name
+ Gitlab::SidekiqConfig::WorkerRouter.queue_name_from_worker_name(self)
+ end
+
override :validate_worker_attributes!
def validate_worker_attributes!
super