diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-12-12 17:21:00 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-12-13 16:28:26 +0100 |
commit | 3cad04cd51fb2453e33044a0eb2923dd389c2d20 (patch) | |
tree | b3169a93b7f4d3dc1429fa98cf09abb4a3a5c61a /app/workers | |
parent | 0ec81dd5ac480120e7ac2b76189ee7978d5c48e8 (diff) | |
download | gitlab-ce-3cad04cd51fb2453e33044a0eb2923dd389c2d20.tar.gz |
Add rubocops to ensure Sidekiq workers include ApplicationWorker and don't manually set their queue
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/concerns/application_worker.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/concerns/application_worker.rb b/app/workers/concerns/application_worker.rb index 285b5bada7d..37586e161c9 100644 --- a/app/workers/concerns/application_worker.rb +++ b/app/workers/concerns/application_worker.rb @@ -3,7 +3,7 @@ Sidekiq::Worker.extend ActiveSupport::Concern module ApplicationWorker extend ActiveSupport::Concern - include Sidekiq::Worker + include Sidekiq::Worker # rubocop:disable Cop/IncludeSidekiqWorker included do set_queue @@ -17,7 +17,7 @@ module ApplicationWorker def set_queue queue_name = [queue_namespace, base_queue_name].compact.join(':') - sidekiq_options queue: queue_name + sidekiq_options queue: queue_name # rubocop:disable Cop/SidekiqOptionsQueue end def base_queue_name |