improve debug

This commit is contained in:
Kenneth Kehl
2024-08-15 17:55:59 -07:00
parent 0c3b382562
commit e2e3501aa4

View File

@@ -191,10 +191,16 @@ def get_job_from_s3(service_id, job_id):
time.sleep(sleep_time) time.sleep(sleep_time)
continue continue
else: else:
current_app.logger.error("Failed to get job from bucket", exc_info=True) current_app.logger.error(
f"Failed to get job {FILE_LOCATION_STRUCTURE.format(service_id, job_id)} from bucket",
exc_info=True,
)
return None return None
except Exception: except Exception:
current_app.logger.error("Failed to get job from bucket", exc_info=True) current_app.logger.error(
f"Failed to get job {FILE_LOCATION_STRUCTURE.format(service_id, job_id)} from bucket",
exc_info=True,
)
return None return None
raise Exception("Failed to get object after 3 attempts") raise Exception("Failed to get object after 3 attempts")