chrisboulton / php-resque

PHP port of resque (Workers and Queueing)
MIT License
3.44k stars 761 forks source link

Worker process name always includes all queues name #346

Open tardypad opened 7 years ago

tardypad commented 7 years ago

This facilitates monitoring of each worker process

pprkut commented 7 years ago

To explain a bit further, we monitor workers based on the queue names they are listening to, making sure that there are workers available for all queues we are monitoring. These queue names are listed in the process name. However, when the worker is actually running, the queue names are dropped from the process name. This results in our monitoring thinking that there is no worker for this queue anymore, giving us a false positive. So with this change we make sure that the queue names a worker listens to are always in the process name, independent of the worker status.