apinstein / jqjobs

A job queue engine for PHP.
32 stars 5 forks source link

Add optional cli_set_process_title() support #14

Open apinstein opened 11 years ago

apinstein commented 11 years ago

http://www.php.net/manual/en/function.setproctitle.php

Jobs are often run with complicated/long commands, such as:

php -d include_path=externals/phocoa/phocoa:tourbuzz:tourbuzz/classes:tourbuzz/externals:tourbuzz/externals/pear/php my-worker.php queue1,queue2

Whereas something like:

jqjobs::worker queue1,queue2 

Would be much nicer.

apinstein commented 10 years ago

Seems that proctiltle is buggy/dangerous. Use http://php.net/manual/en/function.cli-set-process-title.php instead (php5.5+ only)