@@ -157,9 +157,9 @@ public function work($interval = Resque::DEFAULT_INTERVAL, $blocking = false)
157
157
if (!$ this ->paused ) {
158
158
if ($ blocking === true ) {
159
159
$ this ->logger ->log (Psr \Log \LogLevel::INFO , 'Starting blocking with timeout of {interval} ' , array ('interval ' => $ interval ));
160
- $ this ->updateProcLine ('Waiting for ' . implode ( ' , ' , $ this -> queues ) . ' with blocking timeout ' . $ interval );
160
+ $ this ->updateProcLine ('Waiting with blocking timeout ' . $ interval );
161
161
} else {
162
- $ this ->updateProcLine ('Waiting for ' . implode ( ' , ' , $ this -> queues ) . ' with interval ' . $ interval );
162
+ $ this ->updateProcLine ('Waiting with interval ' . $ interval );
163
163
}
164
164
165
165
$ job = $ this ->reserve ($ blocking , $ interval );
@@ -179,7 +179,7 @@ public function work($interval = Resque::DEFAULT_INTERVAL, $blocking = false)
179
179
$ this ->updateProcLine ('Paused ' );
180
180
}
181
181
else {
182
- $ this ->updateProcLine ('Waiting for ' . implode ( ' , ' , $ this -> queues ) );
182
+ $ this ->updateProcLine ('Waiting ' );
183
183
}
184
184
185
185
usleep ($ interval * 1000000 );
@@ -323,7 +323,7 @@ private function startup()
323
323
*/
324
324
private function updateProcLine ($ status )
325
325
{
326
- $ processTitle = 'resque- ' . Resque::VERSION . ': ' . $ status ;
326
+ $ processTitle = 'resque- ' . Resque::VERSION . ' ( ' . implode ( ' , ' , $ this -> queues ) . ' ) : ' . $ status ;
327
327
if (function_exists ('cli_set_process_title ' ) && PHP_OS !== 'Darwin ' ) {
328
328
cli_set_process_title ($ processTitle );
329
329
}
0 commit comments