getNumberOfJobToRun() public method

public getNumberOfJobToRun ( $storeId = null )
コード例 #1
0
 public function runCron()
 {
     if (!$this->config->isQueueActive()) {
         return;
     }
     $nbJobs = $this->config->getNumberOfJobToRun();
     if (getenv('EMPTY_QUEUE') && getenv('EMPTY_QUEUE') == '1') {
         $nbJobs = -1;
     }
     $this->run($nbJobs);
 }