def wait_all(jobs, timeout=None): """ Return when at all of the specified jobs have completed or timeout expires. Args: jobs: a single Job or list of Jobs to wait on. timeout: a timeout in seconds to wait for. None (the default) means no timeout. Returns: A list of completed Jobs. If the call timed out this will be shorter than the list of jobs supplied as a parameter. """ return Job.wait_all(jobs, timeout)