File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -274,13 +274,15 @@ public function reserve()
274
274
* when searching for jobs.
275
275
*
276
276
* If * is found in the list of queues, every queue will be searched in
277
- * alphabetic order.
277
+ * alphabetic order. (@see $fetch)
278
278
*
279
+ * @param boolean $fetch If true, and the queue is set to *, will fetch
280
+ * all queue names from redis.
279
281
* @return array Array of associated queues.
280
282
*/
281
- public function queues ()
283
+ public function queues ($ fetch = true )
282
284
{
283
- if (!in_array ('* ' , $ this ->queues )) {
285
+ if (!in_array ('* ' , $ this ->queues ) || $ fetch == false ) {
284
286
return $ this ->queues ;
285
287
}
286
288
@@ -317,7 +319,7 @@ private function startup()
317
319
{
318
320
$ this ->registerSigHandlers ();
319
321
$ this ->pruneDeadWorkers ();
320
- Resque_Event::trigger ('beforeFirstFork ' );
322
+ Resque_Event::trigger ('beforeFirstFork ' , $ this );
321
323
$ this ->registerWorker ();
322
324
}
323
325
You can’t perform that action at this time.
0 commit comments