mogotest/resque-concurrent-restriction — pull request #1 by nirvdrum (2011-10-21 01:27:39+00:00)
Title: Allow for dynamic concurrency limits based upon the concurrent_identifier value for the job.

There's a pretty good chance I screwed this up, so any feedback on the request would be appreciated. If you don't think this sort of functionality belongs in core, that's cool too. The use case may be a bit esoteric.

The basic idea is I've restricted the set of values from my concurrent_identifier implementation in one of my jobs to be finite and discrete. The tricky part is depending on which value it is, I'd like a different concurrent value. So I decided to enhance the `:concurrent` method to allow acceptance of any object that responds to `:call`, which should be flexible enough for people to implement their own QoS policies.