Exemple #1
0
 protected function isPossibleToRun()
 {
     return is_null($this->getHelper('Data\\GlobalData')->getValue('cron_running')) && parent::isPossibleToRun();
 }
Exemple #2
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();
 }