This commit is contained in:
Rebecca Law
2019-11-08 10:30:26 +00:00
parent d25fcc8748
commit 516190262a
3 changed files with 18 additions and 10 deletions

View File

@@ -37,6 +37,11 @@ def get_job_location(service_id, job_id):
)
def get_job_and_metadata_from_s3(service_id, job_id):
obj = get_s3_object(*get_job_location(service_id, job_id))
return obj.get()['Body'].read().decode('utf-8'), obj.get()['Metadata']
def get_job_from_s3(service_id, job_id):
obj = get_s3_object(*get_job_location(service_id, job_id))
return obj.get()['Body'].read().decode('utf-8')