We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf187fa commit e473ef0Copy full SHA for e473ef0
lib/Resque/Worker.php
@@ -11,6 +11,11 @@
11
*/
12
class Resque_Worker
13
{
14
+ /**
15
+ * @var string Prefix for the process name
16
+ */
17
+ public static $processPrefix = 'resque-';
18
+
19
/**
20
* @var LoggerInterface Logging object that impliments the PSR-3 LoggerInterface
21
@@ -323,7 +328,7 @@ private function startup()
323
328
324
329
private function updateProcLine($status)
325
330
326
- $processTitle = 'resque-' . Resque::VERSION . ': ' . $status;
331
+ $processTitle = static::$processPrefix . Resque::VERSION . ': ' . $status;
327
332
if(function_exists('cli_set_process_title') && PHP_OS !== 'Darwin') {
333
cli_set_process_title($processTitle);
334
}
0 commit comments