defunkt/resque — pull request #666 by ecoffey (2012-09-21 01:52:37+00:00)
Title: Pause hooks

Found myself needing this hook point today for a work project.

The actual changes are pretty small, but my two concerns are:

* The blocks accept a worker, not a job like a lot of the other hooks; worker makes more sense to me since a.) The worker is paused, so there is no job and b.) it's what I needed today ;-)

* The test for it is....awkward in my opinion, but I wasn't sure how else to un-pause the worker without sending it the CONT signal. Thoughts?

Thanks!