示例#1
0
 /**
  * Check if synchronize process is finished and generate notification message
  *
  * @param  \Magento\Framework\Event\Observer $observer
  * @return $this
  */
 public function checkSynchronizationOperations(\Magento\Framework\Event\Observer $observer)
 {
     $this->_flag->loadSelf();
     if ($this->_flag->isExpired()) {
         $this->_notifier->addMajor(__('Google Shopping operation has expired.'), __('One or more google shopping synchronization operations failed because of timeout.'));
         $this->_flag->unlock();
     }
     return $this;
 }