Exemple #1
0
 /**
  * Write the status output for the queue worker.
  *
  * @param  \Illuminate\Queue\Jobs\Job  $job
  * @param  bool  $failed
  * @return void
  */
 protected function writeOutput(Job $job, $failed)
 {
     if ($failed) {
         $this->output->writeln('<error>Failed:</error> ' . $job->getName());
     } else {
         $this->output->writeln('<info>Processed:</info> ' . $job->getName());
     }
 }
 /**
  * Write the status output for the queue worker.
  *
  * @param  \Illuminate\Queue\Jobs\Job  $job
  * @param  bool  $failed
  * @return void
  */
 protected function writeOutput(Job $job, $failed)
 {
     $options = OutputInterface::OUTPUT_RAW;
     if ($failed) {
         $this->output->writeln('<error>Failed:</error> ' . $job->getName(), $options);
     } else {
         $this->output->writeln('<info>Processed:</info> ' . $job->getName(), $options);
     }
 }