File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Resque_Worker
14
14
/**
15
15
* @var string Prefix for the process name
16
16
*/
17
- public static $ processPrefix = 'resque- ' ;
17
+ private static $ processPrefix = 'resque- ' ;
18
18
19
19
/**
20
20
* @var LoggerInterface Logging object that impliments the PSR-3 LoggerInterface
@@ -81,6 +81,15 @@ public function __construct($queues)
81
81
$ this ->id = $ this ->hostname . ': ' .getmypid () . ': ' . implode (', ' , $ this ->queues );
82
82
}
83
83
84
+ /**
85
+ * Set the process prefix of the workers to the given prefix string.
86
+ * @param string $prefix The new process prefix
87
+ */
88
+ public static function setProcessPrefix ($ prefix )
89
+ {
90
+ self ::$ processPrefix = $ prefix ;
91
+ }
92
+
84
93
/**
85
94
* Return all workers known to Resque as instantiated instances.
86
95
* @return array
You can’t perform that action at this time.
0 commit comments