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

Commit

Permalink
remove sleep to avoid 404
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed May 13, 2024
1 parent 9fe19fa commit 6e5607a
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 6e5607a

Please sign in to comment.