Resque\Commands\Queues::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $queues = Resque\Redis::instance()->smembers('queues');
        if (empty($queues)) {
            $this->log('<warn>There are no queues.</warn>');
            return;
        }
        $table = new Resque\Helpers\Table($this);
        $table->setHeaders(array('#', 'Name', 'Queued', 'Delayed', 'Processed', 'Failed', 'Cancelled', 'Total'));
        foreach ($queues as $i => $queue) {
            $stats = Resque\Redis::instance()->hgetall(Resque\Queue::redisKey($queue, 'stats'));
            $table->addRow(array($i + 1, $queue, (int) @$stats['queued'], (int) @$stats['delayed'], (int) @$stats['processed'], (int) @$stats['failed'], (int) @$stats['cancelled'], (int) @$stats['total']));
        }
        $this->log((string) $table);
    }