Core/src/Batch/HandleFailureTrait.php
public function handleFailure($idNum, array $items)
    {
        if (!$this->failureFile) {
            $this->initFailureFile();
        }

        $fp = @fopen($this->failureFile, 'a');
        @fwrite($fp, serialize([$idNum => $items]) . PHP_EOL);
        @fclose($fp);
    }
public function handleFailure($idNum, array $items)
    {
        if (!$this->failureFile) {
            $this->initFailureFile();
        }

        $fp = @fopen($this->failureFile, 'a');
        @fwrite($fp, serialize([$idNum => $items]) . PHP_EOL);
        @fclose($fp);
    }
public function handleFailure ( $ idNum , array $ items ) { if ( ! $ this -> failureFile ) { $ this -> initFailureFile ( ) ; } $ fp = @ fopen ( $ this -> failureFile , 'a' ) ; @ fwrite ( $ fp , serialize ( [ $ idNum => $ items ] ) . PHP_EOL ) ; @ fclose ( $ fp ) ; }
Save the items to the failureFile. We silently abandon the items upon
failures in this method because there's nothing we can do.

@param int $idNum A numeric id for the job.
@param array $items Items to save.
Save the items to the failureFile . We silently abandon the items upon failures in this method because there s nothing we can do .