Core/src/Batch/BatchJob.php
public function flush(array $items = [])
    {
        if (! $this->callFunc($items)) {
            $this->handleFailure($this->id, $items);
            return false;
        }
        return true;
    }
public function flush(array $items = [])
    {
        if (! $this->callFunc($items)) {
            $this->handleFailure($this->id, $items);
            return false;
        }
        return true;
    }
public function flush ( array $ items = [ ] ) { if ( ! $ this -> callFunc ( $ items ) ) { $ this -> handleFailure ( $ this -> id , $ items ) ; return false ; } return true ; }
Finish any pending activity for this job.

@param array $items
@return bool
Finish any pending activity for this job .