binarymatt / pyres

a resque clone in python
http://github.com/binarydud/pyres
MIT License
955 stars 130 forks source link

As part of a healthy, balanced diet, workers need to eat their prunes. #28

Closed mjrusso closed 14 years ago

mjrusso commented 14 years ago

Or something like that.

http://github.com/mjrusso/pyres/commit/e15a3e7f3dc095b2ed318df33c13dded500903d8

A straight-up port of Resque's prune_dead_workers and worker_pids methods.

Now, if you kill -9 your workers on a given machine (or something much, much worse happens), the next worker to start up on that same machine will unregister the dead ones.

binarymatt commented 14 years ago

this looks pretty awesome. Hopefully I will have some time to cherry-pick it tonight.

binarymatt commented 14 years ago

this merged into a branch and soon into master

binarymatt commented 14 years ago

in master, pushed up