Waits for all submitted jobs to complete.

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