diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-12-25 16:18:22 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-12-25 16:18:22 +0200 |
commit | 3c1022f9b118f004c421f212e55acbe1d4ff3954 (patch) | |
tree | fd9fe416b1a0fc20489fc48e86d0480b55794b59 /config | |
parent | 64db738f9de3839090eef6a862581a0e72f6540d (diff) | |
download | gitlab-ce-3c1022f9b118f004c421f212e55acbe1d4ff3954.tar.gz |
No resque errors
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/4_resque.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/config/initializers/4_resque.rb b/config/initializers/4_resque.rb index 03c2b785fae..ab34050cb50 100644 --- a/config/initializers/4_resque.rb +++ b/config/initializers/4_resque.rb @@ -6,12 +6,11 @@ if File.exists?(config_file) Resque.redis = resque_config[Rails.env] end Resque.redis.namespace = 'resque:gitlab' -# Queues -Resque.watch_queue(PostReceive.instance_variable_get("@queue")) +Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection } # Authentication require 'resque/server' -class Authentication +class ResqueAuthentication def initialize(app) @app = app end @@ -23,9 +22,8 @@ class Authentication end end -Resque::Server.use Authentication +Resque::Server.use ResqueAuthentication # Mailer Resque::Mailer.excluded_environments = [] -Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection } |