From 6e5607a119090fab5ab54f66222236dbb80d420d Mon Sep 17 00:00:00 2001 From: Mattia Almansi Date: Mon, 13 May 2024 09:38:35 +0200 Subject: [PATCH] remove sleep to avoid 404 --- cads_api_client/processing.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cads_api_client/processing.py b/cads_api_client/processing.py index 205d403..d904180 100644 --- a/cads_api_client/processing.py +++ b/cads_api_client/processing.py @@ -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"):