I see my Oracle connection being reestablished in my Rails app (running with nginx and passenger), however in my delayed_job daemon the connection is never reestablished. I was assuming passenger is simply killing the Rails process and starting up a new one, and this was how the Oracle connection was being reestablished.
where does activerecord perform the reconnect logic you are referring to ? i only was able to find it for the MySQL Adapter.
this is the exact scenario i am running :
delayed_job starts up with a Oracle connection, processing jobs with no problem.
then we have a blip in the network and delayed_job cannot communicate with Oracle for a few seconds.
then the job is tried again a few minutes later with Oracle communication restored, however the job still fails with an error that it cannot communicate with Oracle.
once i set
ActiveRecord::Base.connection.auto_retry = true in my delayed_job startup script, the Oracle connection is established.
george .