/**
  * Runs the order import cronjob.
  *
  * @param Shopware_Components_Cron_CronJob $Job
  */
 public function runOrderImport(Shopware_Components_Cron_CronJob $Job)
 {
     $this->Config->setImportOrderLastRunTimestamp(time());
     $this->Config->setImportOrderNextRunTimestamp(time() + $Job->getJob()->getInterval());
     if (!$this->Status->maySynchronize()) {
         $this->Config->setImportOrderStatus(0);
         return;
     }
     try {
         PlentymarketsImportController::importOrders();
         $this->Config->setImportOrderStatus(1);
         $this->Config->eraseImportOrderError();
     } catch (Exception $E) {
         $this->Config->setImportOrderStatus(2);
         $this->Config->setImportOrderError($E->getMessage());
     }
 }