Beispiel #1
0
 /**
  * @return \Ess\M2ePro\Model\LockItem
  */
 protected function getLockItem()
 {
     if (!is_null($this->lockItem)) {
         return $this->lockItem;
     }
     $this->lockItem = $this->activeRecordFactory->getObject('LockItem');
     $this->lockItem->setNick('cron_task_' . $this->getNick());
     return $this->lockItem;
 }
Beispiel #2
0
 /**
  * @return \Ess\M2ePro\Model\LockItem
  */
 private function getFastTasksLockItem()
 {
     if (!is_null($this->fastTasksLockItem)) {
         return $this->fastTasksLockItem;
     }
     $this->fastTasksLockItem = $this->activeRecordFactory->getObject('LockItem');
     $this->fastTasksLockItem->setNick('cron_strategy_parallel_fast_tasks');
     return $this->fastTasksLockItem;
 }