コード例 #1
0
ファイル: WorkCommand.php プロジェクト: mawaha/tracker
 /**
  * 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());
     }
 }
コード例 #2
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)
 {
     $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);
     }
 }