function drush_queue_list

8.0.x queue.drush.inc drush_queue_list()
6.x queue.drush.inc drush_queue_list()
7.x queue.drush.inc drush_queue_list()
5.x queue.drush.inc drush_queue_list()
master queue.drush.inc drush_queue_list()

Command callback for drush queue-list.

File

commands/core/queue.drush.inc, line 138

Code

function drush_queue_list() {
  $result = array();
  $queues = drush_queue_get_queues();
  foreach (array_keys($queues) as $name) {
    /** @var DrupalQueueInterface $q */
    $q = DrupalQueue::get($name);
    $result[$name] = array(
      'queue' => $name,
      'items' => $q->numberOfItems(),
      'class' => get_class($q),
    );
  }
  return $result;
}