@staticmethod
  def _LoadJobFromDisk(queue, job_id, try_archived, writable=None):
    path_functions = [(JobQueue._GetJobPath, False)]

    if try_archived:
      path_functions.append((JobQueue._GetArchivedJobPath, True))

    raw_data = None
    archived = None

    for (fn, archived) in path_functions:
      filepath = fn(job_id)
      logging.debug("Loading job from %s", filepath)
      try:
        raw_data = utils.ReadFile(filepath)
      except EnvironmentError, err:
        if err.errno != errno.ENOENT:
          raise
      else:
        break

    if not raw_data:
      logging.debug("No data available for job %s", job_id)
      return None

    if writable is None:
      writable = not archived

    try:
      data = serializer.LoadJson(raw_data)
      job = _QueuedJob.Restore(queue, data, writable, archived)
    except Exception, err: # pylint: disable=W0703
      raise errors.JobFileCorrupted(err)

    return job
Return dates this service period is active as a list of "YYYYMMDD".
dataset/ETHPy150Open ganeti/ganeti/lib/jqueue/__init__.py/JobQueue._LoadJobFromDisk--crossover with--dataset/ETHPy150Open google/transitfeed/transitfeed/serviceperiod.py/ServicePeriod.ActiveDates