Example #1
0
 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();
 }
Example #2
0
 /**
  * @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);
 }
Example #3
0
 public function run($start)
 {
     parent::run($start);
 }
Example #4
0
 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();
 }