/**
  * Processes the next waiting batch of Import Record posts, if there are any.
  *
  * @param int $batch_size
  */
 public function process_queue($batch_size = null)
 {
     if (null === $batch_size) {
         /**
          * Controls the size of each batch processed by default (ie, during cron updates of record
          * inserts/updates).
          *
          * @param int $default_batch_size
          */
         self::$batch_size = (int) apply_filters('tribe_aggregator_batch_size', self::$batch_size);
     } else {
         self::$batch_size = (int) $batch_size;
     }
     while ($this->next_waiting_record()) {
         if (!$this->do_processing()) {
             break;
         }
     }
 }