gresrun / jesque

An implementation of Resque in Java.
http://gresrun.github.io/jesque
Apache License 2.0
630 stars 131 forks source link

When my worker crash or use kill -9 to kill it... #84

Closed damacheng009 closed 9 years ago

damacheng009 commented 9 years ago

127.0.0.1:6379> KEYS * 1) "resque:queue:foo" 2) "resque:worker:SDJS-20150805CG:5796-0:JAVA_DYNAMIC_QUEUES,foo:started" 3) "resque:queues" 4) "resque:workers" 5) "resque:stat:processed" 127.0.0.1:6379> smembers resque:workers 1) "SDJS-20150805CG:5796-0:JAVA_DYNAMIC_QUEUES,foo"

There is some useless data in Redis database..Can we have to manually delete the data..

gresrun commented 9 years ago

Yes, this will happen if the process dies a terrible death. Not much can be done besides manually cleaning it up.

hrchu commented 9 years ago

Can the redis features: expire/notification help this? http://redis.io/commands/expire http://redis.io/topics/notifications