Skip to content

Commit e473ef0

Browse files
committed
use a variable to store process name prefix
1 parent cf187fa commit e473ef0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/Resque/Worker.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
*/
1212
class Resque_Worker
1313
{
14+
/**
15+
* @var string Prefix for the process name
16+
*/
17+
public static $processPrefix = 'resque-';
18+
1419
/**
1520
* @var LoggerInterface Logging object that impliments the PSR-3 LoggerInterface
1621
*/
@@ -323,7 +328,7 @@ private function startup()
323328
*/
324329
private function updateProcLine($status)
325330
{
326-
$processTitle = 'resque-' . Resque::VERSION . ': ' . $status;
331+
$processTitle = static::$processPrefix . Resque::VERSION . ': ' . $status;
327332
if(function_exists('cli_set_process_title') && PHP_OS !== 'Darwin') {
328333
cli_set_process_title($processTitle);
329334
}

0 commit comments

Comments
 (0)