binarymatt / pyres

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

Dump current worker state #96

Open yashh opened 12 years ago

yashh commented 12 years ago

Can we send the SIGUSR1 signal to the pyres_manager and have it dump the current log traceback of workers?

kill -USR1 <pid of pyres_manager>

dump the current traceback to -f pyres.log

This feature is really useful because often there are workers that might get stuck on a memcache connection or some sort of service that is hung due to high CPU usage etc. Celery supports this feature and it would be good to have this in pyres as well.

binarymatt commented 12 years ago

i like the idea, i'd have to look into how this would be best accomplished