def _GetJobStatusForDependencies(self, job_id):
    # Not using in-memory cache as doing so would require an exclusive lock

    # Try to load from disk
    job = JobQueue.SafeLoadJobFromDisk(self, job_id, True, writable=False)

    if job:
      assert not job.writable, "Got writable job" # pylint: disable=E1101

    if job:
      return job.CalcStatus()

    raise errors.JobLost("Job %s not found" % job_id)
Entry point for pre-serialization processing, for example to finalize
dataset/ETHPy150Open ganeti/ganeti/lib/jqueue/__init__.py/JobQueue._GetJobStatusForDependencies--crossover with--dataset/ETHPy150Open scanny/python-pptx/pptx/opc/package.py/Part.before_marshal