gresrun/jesque — Issue #11: Jesque not removing workers from Resque upon end()
Author: ruckus
Created: 2011-10-29 23:52:53+00:00
State: open

I am spinning up Workers and they're processing jobs just fine. I use the existence of a control file to request workers to shut down.

Even though I am calling

`worker.end(true);`

The worker is still in Resque, waiting for a job. I am monitoring the redis stream using `redis-cli monitor` and dont see any commands to remove this worker.

```java

for(Worker w : avatarWorkers) {
if(w != null) {
log.info("Stopping avatar worker: " + w.toString());
w.end(true);
}
}
```

Results log messages like:

```
2011-10-29 16:42:58,436 [main] INFO com.batch.App - Stopping avatar worker: dev:worker:Codys-MacBook-Pro.local:10065-6:JAVA_DYNAMIC_QUEUES,avatars
```

But they're stil in Resque / Redis.

Am I doing something wrong?