I use delayed job with the ActiveRecord backend using mysql on a distributed system. Whenever I restart the mysql database, the workers simply stop. According to the log, each worker attempts to reconnect 8 times with 5 second intervals and then quits with a FATAL -- : MySQL client is not connected message.
This means that each time I restart the database, I have to also restart all my workers.
Is there a way to increase the number of reconnection attempts?