bbangert / retools

Redis Tools
MIT License
138 stars 41 forks source link

retools.queue butchers queue names #41

Open msabramo opened 9 years ago

msabramo commented 9 years ago

I use a queue named "long" and I noticed that the process title was always "retools: Waiting for ng" for some strange reason.

Tonight, I finally looked into it and found out why.

It's because lstrip doesn't do what the author of the code who used it thinks it does.

>>> queue_name = 'long'
>>> queue_name.lstrip('retools:queue:')
'ng'

This inappropriate usage is in 2 places:

I'll send a PR to fix this...