I am using resque <https://github.com/resque/resque> in my rails
application but I am having this problem. After some hour of inactivity,
obviously mysql goes in timeout and resque workers lost connection.
So, when a new job is enqueued it raises:
ExceptionSequel::DatabaseDisconnectErrorErrorMysql2::Error: MySQL server
has gone away <http://localhost:3000/resque_web/failures#>
I don't really know how to handle this.. on the resque docs, they say to
use ActiveRecord::Base.verify_active_connections! to avoid this, but how
can I solve it with Sequel? I read the docs and it says that Sequel does
not leaks connections, but in this special case something like this happens.
How can I handle this? I am wondering if there is a way to avoid this, or
to reconnect when this error happens!
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.