class_docstr: Low-level status reporting APIs for monitoring job and stage progress.
  
  These APIs intentionally provide very weak consistency semantics;
  consumers of these APIs should be prepared to handle empty / missing
  information. For example, a job's stage ids may be known but the status
  API may not have any information about the details of those stages, so
  `getStageInfo` could potentially return `None` for a valid stage id.
  
  To limit memory usage, these APIs only provide information on recent
  jobs / stages.  These APIs will provide information for the last
  `spark.ui.retainedStages` stages and `spark.ui.retainedJobs` jobs.
docstr: Returns a :class:`SparkJobInfo` object, or None if the job info
  could not be found or was garbage collected.
docstr_tok: ["Returns","a",":","class",":","`","SparkJobInfo","`","object",",","or","None","if","the","job","info","could","not","be","found","or","was","garbage","collected","."]
code: def getJobInfo(self, jobId: int) -> Optional[SparkJobInfo]:
      """
      Returns a :class:`SparkJobInfo` object, or None if the job info
      could not be found or was garbage collected.
      """
      job = self._jtracker.getJobInfo(jobId)
      if job is not None:
          return SparkJobInfo(jobId, job.stageIds(), str(job.status()))
      return None
  
file_path: spark/python/pyspark/status.py
imports: from typing import List, NamedTuple, Optional
  from py4j.java_collections import JavaArray
  from py4j.java_gateway import JavaObject
label_desc: Use image node_id 5 for calling the StatusTracker obj's underlying member method code with example usage: obj.getJobInfo(jobId) and returns: None, SparkJobInfo