code: def loop(self):
          
          logging.info("Running %s in loop mode." % self.service_name)
  
          res = None
          while True:
              try:
                  res = self.run()
                  time.sleep(self.loop_duration)
              except KeyboardInterrupt:
                  logging.warning("Keyboard Interrupt during loop, stopping %s service now..." % self.service_name)
                  break
              except Exception as e:
                  logging.exception("Error in %s main loop! (%s)" % (self.service_name, e))
                  raise e
          return res
docs: Run the demo suite in a loop.