Using delayed_job with Mongoid
by Trevor Turk
You can opt to use the Mongoid backend, but I’m just talking about using the latest version of delayed_job in a Rails 3 app that also happens to use Monogid. I was having some “connection closed” problems that made it look like the Mongo connection was being dropped.
Putting this into an initializer seems to solve the issue:
http://gist.github.com/639512?file=gistfile1.txt
Thanks for figuring that out, Mischa
Advertisement
Is it necessary to do more than this to use delayed job in mongoid without the mongoid backend, or is this all the code required to reliably use delayed job in mongoid?