class_docstr: A class representing an H2O Job.
class_docstr_tok: ["A","class","representing","an","H2O","Job","."]
docstr: Initialize new H2OJob object.
docstr_tok: ["Initialize","new","H2OJob","object","."]
code: def __init__(self, jobs, job_type):
      """Initialize new H2OJob object."""
      if "jobs" in jobs:
          job = jobs["jobs"][0]
      elif "job" in jobs:
          job = jobs["job"]
      else:
          job = jobs
  
      self.job = job
      self.status = job["status"]
      self.job_key = job["key"]["name"]
      self.dest_key = job["dest"]["name"]
      self.auto_recoverable = job["auto_recoverable"]
      self.job_poll_success = False
      self.warnings = None
      self.progress = 0
      self.exception = job["exception"] if "exception" in job else None
      self._job_type = job_type
      self._polling = False
      self._poll_count = 10**10
  
file_path: h2o-3/h2o-py/h2o/job.py
imports: import functools
  import warnings
  import time
  import h2o
  from h2o.exceptions import H2OJobCancelled, H2OConnectionError, H2OResponseError, H2OServerError
  from h2o.utils.progressbar import ProgressBar, PBWString, PBWBar, PBWPercentage
  from h2o.utils.shared_utils import clamp
label_desc: Use image node_id 1 to create a new H2OJob object from inherited base classes: object with example: obj = H2OJob(jobs, job_type)