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); }
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); }