Postgres/Resque Bug Fix
If you are using Resque as a background process worker and Postgres as a database, you may encounter this numerous PG related errors such as Postgres disconnecting. To fix this, you'll need to add this Resque initializers to your config/initializers/resque.rb
Resque.before_fork = Proc.new {
ActiveRecord::Base.establish_connection
}
Written by Adrian Peterson Co
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Activerecord
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#