protected function beforeStart() { /* //todo investigete Magento 2 cron * Magento can execute M2ePro cron multiple times in same php process. * It can cause problems with items that were cached in first execution. */ // --------------------------------------- $this->getHelper('Data\\GlobalData')->setValue('cron_running', true); // --------------------------------------- parent::beforeStart(); $this->distributeLoadIfNeed(); }
/** * @param string[] $inputs * @param string[] $excludes * * @return string[] */ protected function getPaths(array $inputs, array $excludes = []) { $excludes = array_merge($this->excludes, $excludes); return parent::getPaths($inputs, $excludes); }
public function run($start) { parent::run($start); }
protected function isPossibleToRun() { $authKey = $this->getHelper('Module')->getConfig()->getGroupValue('/cron/service/', 'auth_key'); return !is_null($authKey) && !is_null($this->requestAuthKey) && !is_null($this->requestConnectionId) && $authKey == $this->requestAuthKey && parent::isPossibleToRun(); }