Core/src/Batch/InMemoryConfigStorage.php
public function flush($idNum)
    {
        if (isset($this->items[$idNum])) {
            $job = $this->config->getJobFromIdNum($idNum);

            if (!$job->flush($this->items[$idNum])) {
                $this->handleFailure($idNum, $this->items[$idNum]);
            }

            $this->items[$idNum] = [];
            $this->lastInvoked[$idNum] = microtime(true);
        }

        return true;
    }
public function flush($idNum)
    {
        if (isset($this->items[$idNum])) {
            $job = $this->config->getJobFromIdNum($idNum);

            if (!$job->flush($this->items[$idNum])) {
                $this->handleFailure($idNum, $this->items[$idNum]);
            }

            $this->items[$idNum] = [];
            $this->lastInvoked[$idNum] = microtime(true);
        }

        return true;
    }
public function flush ( $ idNum ) { if ( isset ( $ this -> items [ $ idNum ] ) ) { $ job = $ this -> config -> getJobFromIdNum ( $ idNum ) ; if ( ! $ job -> flush ( $ this -> items [ $ idNum ] ) ) { $ this -> handleFailure ( $ idNum , $ this -> items [ $ idNum ] ) ; } $ this -> items [ $ idNum ] = [ ] ; $ this -> lastInvoked [ $ idNum ] = microtime ( true ) ; } return true ; }
Run the job with the given id.

@param int $idNum A numeric id for the job.
@return bool
Run the job with the given id .