scotttam/resque-throttle — pull request #4 by lucisferre (2012-08-16 17:30:53+00:00)
Title: Changes throttling code to rely on Resque's hooks instead

The reason for this change was incompatibility between resque-throttle and
resque-scheduler. The mechanism of aliasing the enque function was being
ignored by the scheduler when it queued jobs.

* Uses the before_enque or after_enqeue hooks to throttle the jobs.
* Does not throw exceptions by default but simply drops the job, a
'throws_exception' setting has been added for exception throwing
support
* Throttling can be cleared if the job fails. The setting for this is
'reset_on_failure'