ryandotsmith/queue_classic — pull request #215 by severin (2014-04-25 14:32:49+00:00)
Title: handle_failure method gets access to queue from which the failing job originated

This allows failure handling based on the queue the job was scheduled in.

##### An example:

```ruby
FailureQueue = QC::Queue.new('second_try')

def handle_failure(queue,job,e)
if queue == FailureQueue
# The job failed for good, notify airbrake or whatever
# ...
else
# Reschedule the job in the second_try queue
FailureQueue.enqueue(job[:method], *job[:args])
end
end
```