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