read

I recently experienced above line in my Daemon's log file - which of course, broke the whole damn thing. It seems the Rails framework has some kind of countermeasure in place because this never happened there before. A short query to the almighty Google led to this snippet:

Thread.new {
  loop {
      sleep 30.minutes
      ActiveRecord::Base.verify_active_connections!
  }
}.priority = -10
Back to Overview