code: public function logJobEnd(ProcessJobEvent $event) : void
      {
          $result  = $event->getResult();
          $job     = $event->getJob();
          $queue   = $event->getQueue()->getName();
          $logger  = $this->getLogger();
  
          switch ($result) {
              default:
  
                  $logger->info(sprintf(
                      $this->tmpl['job'],
                      $queue,
                      'SUCCESS',
                      $this->formatJob($job)
                  ));
                  break;
  
              case ProcessJobEvent::JOB_STATUS_FAILURE_RECOVERABLE:
                  $logger->warn(sprintf(
                      $this->tmpl['job'],
                      $queue,
                      'RECOVERABLE',
                      $this->formatJob($job)
                  ));
  
                  break;
  
              case ProcessJobEvent::JOB_STATUS_FAILURE:
                  $logger->err(sprintf(
                      $this->tmpl['job'],
                      $queue,
                      'FAILURE',
                      $this->formatJob($job)
                  ));
  
                  break;
          }
      }
docs: listener method for process job event
  
  Called late due to low priority
  
  @param ProcessJobEvent $event