code: public function findByJob(JobInterface $job)
      {
          $path = $this->buildPath($job->getTicket());
          if(!file_exists($path)) {
              return [];
          }
  
          $content = file_get_contents($path);
          if(strlen($content) == 0) {
              return [];
          }
  
          $records = [];
          $lines = explode("/n", $content);
          foreach ($lines as $line) {
              $record = json_decode($line, true);
              if(false === $record) {
                  throw new \RuntimeException('Failed to deserialize logs from file ' . $path);
              }
              if(null !== $record) {
                  $records[] = $record;
              }
          }
  
          return $records;
      }
docs: {@inheritdoc}