…bers of Beanstalk::NotFound errors for delete_first jobs
This reverts the previous "use cattr_accessor" patch, simplifies things a bit, and calls the proper hooks depending on where in the class hierarchy the usual rails hook was called.
All of my tests fail with this change. I'm pretty sure cattr_accessor is required. This reverts commit 71f66b4.
This fixes the "mysql server has gone away" error that occurs on low-traffic systems when mysqld closes an idle connection after 8 hours.