mperham/sidekiq — Issue #61: Redis namespace not honored as parameter in CLI
Author: scottwater
Created: 2012-02-27 18:17:28+00:00
State: open

On line #45 in cli.rb:

Sidekiq.redis ||= RedisConnection.create(:url => options[:server], :namespace => options[:namespace])

Sidekiq.redis will never be nil since sidekiq.rb (line 55) defines .redis as:

@redis ||= Sidekiq::RedisConnection.create

The fix appears to change ||= to just = on line 45.

...or now that there is Sidekiq.configure_server to remove namespace (and other options?) from the cli option list (I can update the wiki if this is the plan since it recommends -n).

Thanks,
Scott