Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcucchi9 committed Aug 1, 2024
1 parent 12b22be commit fa3d784
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cads_processing_api_service/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,13 +506,13 @@ def get_results_from_job(
if job_status == "successful":
try:
asset_value = job.cache_entry.result["args"][0] # type: ignore
if "href" in asset_value:
asset_value["href"] = update_results_href(asset_value["href"])
results = {"asset": {"value": asset_value}}
except Exception:
raise exceptions.JobResultsExpired(
detail=f"results of job {job_id} expired"
)
if "href" in asset_value:
asset_value["href"] = update_results_href(asset_value["href"])
results = {"asset": {"value": asset_value}}
elif job_status == "failed":
error_messages = get_job_events(
job=job, session=session, event_type="user_visible_error"
Expand Down

0 comments on commit fa3d784

Please sign in to comment.