示例#1
0
 /**
  * {inheritdoc}
  *
  * Return codes:
  * 0 = no execution errors
  * 1 = execution errors occured
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $this->metrics->setMetricClass('background')->setTransactionName('cron');
     $this->initGlobals();
     $this->logger->debug('--------------------------------------------> at cron.php <--------------------------------------------');
     $driver = $this->getCronDriver();
     $driver->runCycle();
     $this->cleanup();
     return $driver->runOk() ? 0 : 1;
 }