2018-11-20 02:01:13 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-06-01 18:10:04 +00:00
|
|
|
# We need this require for MailRoom
|
2017-07-11 03:35:47 +00:00
|
|
|
require_relative 'wrapper' unless defined?(::Gitlab::Redis::Wrapper)
|
2021-06-09 06:10:29 +00:00
|
|
|
require 'active_support/core_ext/object/blank'
|
2017-07-11 03:35:47 +00:00
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Redis
|
|
|
|
class Queues < ::Gitlab::Redis::Wrapper
|
2019-08-31 19:25:25 +00:00
|
|
|
SIDEKIQ_NAMESPACE = 'resque:gitlab'
|
|
|
|
MAILROOM_NAMESPACE = 'mail_room:gitlab'
|
2017-07-11 03:35:47 +00:00
|
|
|
|
2021-06-04 12:10:17 +00:00
|
|
|
private
|
|
|
|
|
|
|
|
def raw_config_hash
|
2021-06-09 06:10:29 +00:00
|
|
|
config = super
|
|
|
|
config[:url] = 'redis://localhost:6381' if config[:url].blank?
|
|
|
|
config
|
2017-07-11 03:35:47 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|