Example #1
0
 /**
  * Fail task
  *
  * @return void
  */
 protected function failTask()
 {
     parent::failTask();
     \XLite\Core\Database::getRepo('XLite\\Model\\TmpVar')->removeEventState($this->getEventName());
 }
Example #2
0
 /**
  * Finish task
  *
  * @return void
  */
 protected function finishTask()
 {
     parent::finishTask();
     if (isset($this->record['s3_error_count']) && 0 < $this->record['s3_error_count']) {
         $this->errors[] = static::t('Couldn\'t move X images. See log for details.', array('count' => $this->record['s3_error_count']));
     }
 }