binarymatt / pyres

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

Use setproctitle #29

Closed mjrusso closed 14 years ago

mjrusso commented 14 years ago

I noticed that there is a package called setproctitle when gunicorn started using it recently. (See gunicorn commit: http://github.com/benoitc/gunicorn/commit/5afec8d7268b081ba2f1a806b08bd2418519aa59 and package details: http://pypi.python.org/pypi/setproctitle/ )

It would be very nice if the name of pyres workers (parents and children) took advantage of this to convey information. Examples from Resque:

$0 = "resque: Starting"

$0 = "resque: Forked #{@child} at #{Time.now.to_i}"

$0 = "resque: Processing #{job.queue} since #{Time.now.to_i}"

$0 = "resque: Paused"

$0 = "resque: Waiting for #{@queues.join(',')}"
binarymatt commented 14 years ago

i was actually just starting to look at this package. One of the guys from our local users group mentioned it to me.

binarymatt commented 14 years ago

i've put the first versions of this in master. Should be released in 0.8 soon