Commit 59a86e42 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix resque exception

parent 95af2baa
require 'resque/tasks' require 'resque/tasks'
# Fix Exception
# ActiveRecord::StatementInvalid
# Error
# PGError: ERROR: prepared statement "a3" already exists
task "resque:setup" => :environment do task "resque:setup" => :environment do
Resque.after_fork do |job| Resque.after_fork do
ActiveRecord::Base.establish_connection Resque.redis.client.reconnect
end end
end end
......
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