mperham/sidekiq — pull request #12 by maxjustus (2012-02-09 19:09:35+00:00)
Title: Make Sidekiq more Resque compatible

Resque always namespaces it's keys either with 'resque:' by default, or with a user defined namespace. So to make Sidekiq compatible with existing Resque installations, I've added namespacing support.

In addition, resque-web uses a set under the 'queues' key to determine which queues to display in it's main dashboard, so I've added a client middleware that adds the queue of the job being queued to that set.

I also refactored all the disparate calls to create redis connections into a single class so there's less repetition.

Thanks for a killer lib!

:moneybag:

Max