Closed igatto closed 4 years ago
This is a fantastic question for an ActiveRecord forum. Neither Hutch nor Bunny have any restrictions or opinion on this.
One way would be to handle this error and reconnect. The existence of this module suggests that modern ActiveRecord might have a way of handling connection failures for you but this is just a guess.
Let's say I have a pretty strict timeouts inside my database.yml file:
And after 5 seconds of being idle when Hutch is trying to process a new payload. I have this error:
How should I refresh connection to the database?