quirkey / resque-status

resque-status is an extension to the resque queue system that provides simple trackable jobs.
MIT License
515 stars 169 forks source link

Does resque-status work with namespace in connection? #127

Open astudnev opened 9 years ago

astudnev commented 9 years ago

I had a prolem running a redis connection with namespace, as described in resque:

Set the redis connection. Takes any of:

String - a redis url string (e.g., 'redis://host:port')

String - 'hostname:port[:db][/namespace]'

Redis - a redis connection that will be namespaced :resque

Redis::Namespace - a namespaced redis connection that will be used as-is

Redis::Distributed - a distributed redis connection that will be used as-is

Hash - a redis connection hash (e.g. {:host => 'localhost', :port => 6379, :db => 0})

config.redis = 'localhost:6379:alpha/high'

If i specify a namespace in connectioin, 2 wrong things happen:

1) _statuses do not appear in redis keys

2) Web interface did not show statuses

Howeverm jobs were executed and statuses recorde

What was wrong there?

I had to switch to database index selector - it works fine