in cstar/jobreader.py [0:0]
def read(job, job_id, stop_after, output_directory=None, max_days=7, endpoint_mapper=None, retry=False):
output_directory = output_directory or os.path.expanduser("~/.cstar/jobs/" + job_id)
file = output_directory + "/job.json"
if not endpoint_mapper:
endpoint_mapper = job.get_endpoint_mapping
with open(file) as f:
return _parse(f.read(), file, output_directory, job, job_id, stop_after, max_days, endpoint_mapper, retry)
return job