code: def wait(self):
          
          logging.info("waiting for {} jobs to complete".format(len(self.submissions)))
          while not self.shutdown:
              time.sleep(1)
docs: Waits for all submitted jobs to complete.