debian-mirror-gitlab/lib/gitlab/redis/queues.rb

23 lines
524 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
2021-09-04 01:27:46 +05:30
# We need this require for MailRoom
2017-09-10 17:25:29 +05:30
require_relative 'wrapper' unless defined?(::Gitlab::Redis::Wrapper)
2021-09-04 01:27:46 +05:30
require 'active_support/core_ext/object/blank'
2017-09-10 17:25:29 +05:30
module Gitlab
module Redis
class Queues < ::Gitlab::Redis::Wrapper
2019-12-04 20:38:33 +05:30
SIDEKIQ_NAMESPACE = 'resque:gitlab'
MAILROOM_NAMESPACE = 'mail_room:gitlab'
2017-09-10 17:25:29 +05:30
2021-09-04 01:27:46 +05:30
private
2017-09-10 17:25:29 +05:30
2021-09-04 01:27:46 +05:30
def raw_config_hash
config = super
config[:url] = 'redis://localhost:6381' if config[:url].blank?
config
2017-09-10 17:25:29 +05:30
end
end
end
end