コード例 #1
0
ファイル: Magento.php プロジェクト: Doability/magento2dev
 protected function isPossibleToRun()
 {
     return is_null($this->getHelper('Data\\GlobalData')->getValue('cron_running')) && parent::isPossibleToRun();
 }
コード例 #2
0
ファイル: Service.php プロジェクト: Doability/magento2dev
 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();
 }