protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $queue = $this->getQueue(); $stats = new ArrayCollection(); foreach ($input->getArgument('id') as $id) { $jobStats = $queue->statsJob($id); if ($jobStats->id() !== -1) { $stats->add($jobStats); } else { $output->writeln("Job <info>#{$id}</info> does not exist"); } } if (!$stats->isEmpty()) { $output->writeln($this->renderStats($stats)); } }