1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Fix queue name with namespace, fixes #109

This commit is contained in:
Mike Perham 2012-04-03 07:09:43 -07:00
parent 2e58b1d9d8
commit efb2273461
2 changed files with 7 additions and 1 deletions

View file

@ -1,6 +1,12 @@
HEAD
-----------
- Fix fetch breaking retry when used with Redis namespaces. [#109]
0.11.0
-----------
- Client-side API changes, added sidekiq\_options for Sidekiq::Worker.
As a side effect of this change, the client API works on Ruby 1.8.
It's not officially supported but should work [#103]

View file

@ -35,7 +35,7 @@ module Sidekiq
Sidekiq.redis { |conn| (queue, msg) = conn.blpop(*@cmd) }
if msg
@mgr.assign!(msg, queue.gsub(/\Aqueue:/, ''))
@mgr.assign!(msg, queue.gsub(/.*queue:/, ''))
else
after(0) { fetch }
end