protected function afterEnd() { parent::afterEnd(); Mage::helper('M2ePro/Data_Global')->unsetValue('cron_running'); }
protected function isPossibleToRun() { $authKey = Mage::helper('M2ePro/Module')->getConfig()->getGroupValue('/cron/service/', 'auth_key'); return !is_null($authKey) && !is_null($this->requestAuthKey) && !is_null($this->requestConnectionId) && $authKey == $this->requestAuthKey && parent::isPossibleToRun(); }