Commit 68b119f6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #2022 from simonoff/master

Resque must be running in the own namespace
parents 752468b2 18bc873d
# Custom Redis configuration # Custom Redis configuration
rails_root = ENV['RAILS_ROOT'] || File.dirname(__FILE__) + '/../..' config_file = Rails.root.join('config', 'resque.yml')
rails_env = ENV['RAILS_ENV'] || 'development'
config_file = File.join(rails_root, 'config', 'resque.yml')
if File.exists?(config_file) if File.exists?(config_file)
resque_config = YAML.load_file(config_file) resque_config = YAML.load_file(config_file)
Resque.redis = resque_config[rails_env] Resque.redis = resque_config[Rails.env]
end end
Resque.redis.namespace = 'resque:gitlab'
# Queues # Queues
Resque.watch_queue(PostReceive.instance_variable_get("@queue")) Resque.watch_queue(PostReceive.instance_variable_get("@queue"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment