code: def resume(self):
          
          self.num_calls -= 1
          if self.num_calls > 0:
              return
          logger.info("Resume actions for {} objects".format(len(self)))
  
          # Fetch the objects from the pool
          processed = list()
          for brain in api.search(dict(UID=self.objects.keys()), UID_CATALOG):
              uid = api.get_uid(brain)
              if uid in processed:
                  # This object has been processed already, do nothing
                  continue
  
              # Reindex the object
              obj = api.get_object(brain)
              idxs = self.get_indexes(uid)
              idxs_str = idxs and ', '.join(idxs) or "-- All indexes --"
              logger.info("Reindexing {}: {}".format(obj.getId(), idxs_str))
              obj.reindexObject(idxs=idxs)
              processed.append(uid)
  
          # Cleanup the pool
          logger.info("Objects processed: {}".format(len(processed)))
          self.objects = collections.OrderedDict()
docs: Resumes the pool and reindex all objects processed