/**
  * Runs the item price import cronjob.
  *
  * @param Shopware_Components_Cron_CronJob $Job
  */
 public function runItemPriceImport(Shopware_Components_Cron_CronJob $Job)
 {
     $this->Config->setImportItemPriceLastRunTimestamp(time());
     $this->Config->setImportItemPriceNextRunTimestamp(time() + $Job->getJob()->getInterval());
     if (!$this->Status->maySynchronize()) {
         $this->Config->setImportItemPriceStatus(0);
         return;
     }
     try {
         PlentymarketsImportController::importItemPrices();
         $this->Config->setImportItemPriceStatus(1);
         $this->Config->eraseImportItemPriceError();
     } catch (Exception $E) {
         $this->Config->setImportItemPriceStatus(2);
         $this->Config->setImportItemPriceError($E->getMessage());
     }
 }