コード例 #1
0
ファイル: __init__.py プロジェクト: vasbala/datalab
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)
コード例 #2
0
ファイル: __init__.py プロジェクト: angelapper/datalab
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)