diff options
Diffstat (limited to 'lib/api/admin/sidekiq.rb')
-rw-r--r-- | lib/api/admin/sidekiq.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/admin/sidekiq.rb b/lib/api/admin/sidekiq.rb index d91d4a0d4d5..05eb7f8222b 100644 --- a/lib/api/admin/sidekiq.rb +++ b/lib/api/admin/sidekiq.rb @@ -12,11 +12,11 @@ module API namespace 'queues' do desc 'Drop jobs matching the given metadata from the Sidekiq queue' params do - Gitlab::ApplicationContext::KNOWN_KEYS.each do |key| + Gitlab::SidekiqQueue::ALLOWED_KEYS.each do |key| optional key, type: String, allow_blank: false end - at_least_one_of(*Gitlab::ApplicationContext::KNOWN_KEYS) + at_least_one_of(*Gitlab::SidekiqQueue::ALLOWED_KEYS) end delete ':queue_name' do result = |