code: def _split_incoming_queries_into_batches(
              self,
              sources,
              searchParams=False):
          
          self.log.info(
              'starting the ``_split_incoming_queries_into_batches`` method')
  
          batchSize = 180
          total = len(sources)
          batches = int(total / batchSize) + 1
  
          start = 0
          end = 0
          theseBatches = []
          theseBatchParams = []
          for i in range(batches):
              end = end + batchSize
              start = i * batchSize
              thisBatch = sources[start:end]
              theseBatches.append(thisBatch)
  
              if searchParams != False:
                  thisBatch = searchParams[start:end]
                  theseBatchParams.append(thisBatch)
  
          if len(theseBatchParams) == 0:
              theseBatchParams = False
  
          self.log.info(
              'completed the ``_split_incoming_queries_into_batches`` method')
          return theseBatches, theseBatchParams
docs: *split incoming queries into batches*
  
          **Key Arguments:**
              - ``sources`` -- sources to split into batches
              - ``searchParams`` -- search params associated with batches
  
          **Return:**
              - ``theseBatches`` -- list of batches
              - ``theseBatchParams`` -- params associated with batches