protected function execute(InputInterface $input, OutputInterface $output) { $this->ids = array(); if ($id = $input->getOption('id')) { $this->ids[] = $id; $this->validateState(false); $this->validateTube(false); } parent::execute($input, $output); if ($id) { $job = $this->getQueue()->peekJob(intval($id)); $output->writeln("Peeking at job <info>#{$job->getId()}</info>"); $output->writeln($this->renderJobData($job)); } if ($input->getOption('stats')) { $this->renderStats($output, $this->ids); } }