Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #47 from ecmwf-projects/remove-sleep
Browse files Browse the repository at this point in the history
remove sleep to avoid 404
  • Loading branch information
francesconazzaro authored May 13, 2024
2 parents 1d25dfb + 6e5607a commit d227b3d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cads_api_client/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,8 @@ def wait_on_result(self, retry_options: Dict[str, Any] = {}) -> None:
if status != (status := self._robust_status(retry_options=retry_options)):
logger.info(f"status has been updated to {status}")
if status == "successful":
# workaround for the server-side 404 due to database replicas out od sync
time.sleep(1)
break
elif status == "failed":
# workaround for the server-side 404 due to database replicas out od sync
time.sleep(1)
results = multiurl.robust(self.make_results, **retry_options)(self.url)
raise ProcessingFailedError(error_json_to_message(results.json))
elif status in ("accepted", "running"):
Expand Down

0 comments on commit d227b3d

Please sign in to comment.