summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-12-25 15:53:50 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-12-25 15:53:50 +0200
commit64db738f9de3839090eef6a862581a0e72f6540d (patch)
treecf4ea00a212f6dfde2e96be0ad5a0a3c6fe4d74e /lib/tasks
parentc5eba169cdcf0d66cd7c6b34dace639a08949dd9 (diff)
downloadgitlab-ce-64db738f9de3839090eef6a862581a0e72f6540d.tar.gz
Trying to fix resque issue
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/resque.rake4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/tasks/resque.rake b/lib/tasks/resque.rake
index 0825324a424..36e461da660 100644
--- a/lib/tasks/resque.rake
+++ b/lib/tasks/resque.rake
@@ -1,9 +1,7 @@
require 'resque/tasks'
task "resque:setup" => :environment do
- Resque.after_fork do
- Resque.redis.client.reconnect
- end
+ Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
end
desc "Alias for resque:work (To run workers on Heroku)"