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

Fix resque exception

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