Skip to content
Snippets Groups Projects
Commit 59a86e42 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix resque exception

parent 95af2baa
No related branches found
No related tags found
No related merge requests found
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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment