kdonovan/apn_sender — comment on commit f4aaa2cd03e38e4d7c8459ecc07b99d1aebdf0ad
File: lib/resque/hooks/before_unregister_worker.rb line 6
By elight:

Please don't do this!

Fork Resque, patch it to allow for an Array of handlers to be fired, and either provide access to that Array of handlers or mechanisms to pre/append to that list of handlers.

This monkey patch cost me at least 4 hours of sifting through code. It was only thanks to Pry that I eventually found it!