/**
  */
 public function alisExportCommand()
 {
     /** @var DataExportController $exporter */
     $exporter = new DataExportController($this->logger);
     $exporter->injectSettings($this->settings);
     $exporter->initializeAction();
     $exporter->mysql2solrExportAction();
 }
 /**
  * Execute the job
  *
  * A job should finish itself after successful execution using the queue methods.
  *
  * @param QueueInterface $queue
  * @param Message $message The original message
  * @return bool TRUE if the job was executed successfully and the message should be finished
  */
 public function execute(QueueInterface $queue, Message $message)
 {
     // only one at the time to avoid stacking of requests
     if ($queue->count() > 0) {
         return true;
     }
     $solrExporter = new DataExportController();
     $solrExporter->injectSettings($this->settings);
     $solrExporter->initializeAction();
     try {
         $jobExecuted = $solrExporter->mysql2solrExportAction();
     } catch (\Exception $e) {
         $this->logger->logException($e);
         $jobExecuted = false;
     }
     return $jobExecuted;
 }