def run(self):
    while True:

      logging.debug("Trying to get groomer lock.")
      if self.get_groomer_lock():
        logging.info("Got the groomer lock.")
        self.run_groomer()
        try:
          self.zoo_keeper.release_lock_with_path(zk.DS_GROOM_LOCK_PATH)
        except zk.ZKTransactionException, zk_exception:
          logging.error("Unable to release zk lock {0}.".\
            format(str(zk_exception)))
        except zk.ZKInternalException, zk_exception:
          logging.error("Unable to release zk lock {0}.".\
            format(str(zk_exception)))
      else:
        logging.info("Did not get the groomer lock.")
      sleep_time = random.randint(1, self.LOCK_POLL_PERIOD)
      logging.info('Sleeping for {:.1f} minutes.'.format(sleep_time/60.0))
      time.sleep(sleep_time)
Clear the current class content.
dataset/ETHPy150Open AppScale/appscale/AppDB/groomer.py/DatastoreGroomer.run--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/vendor/epydoc/docwriter/xlink.py/DocUrlGenerator.clear