예제 #1
0
 /**
  * Return an array containing all of the queues that this worker should use
  * when searching for jobs.
  *
  * If * is found in the list of queues, every queue will be searched in
  * alphabetic order. (@see $fetch)
  *
  * @param boolean $fetch
  *            If true, and the queue is set to *, will fetch
  *            all queue names from redis.
  * @return array Array of associated queues.
  */
 public function queues($fetch = true)
 {
     if (!in_array('*', $this->queues) || $fetch == false) {
         return $this->queues;
     }
     $queues = Resque::queues();
     sort($queues);
     return $queues;
 }
예제 #2
0
 /**
  * List all the queues
  *
  * @return array the queue names
  */
 public function getQueues()
 {
     return Resque::queues();
 }