From 1011b1e15fca8d71bf2a7058cafebbf163f8ba62 Mon Sep 17 00:00:00 2001 From: "Dr. Dennis Wittich" Date: Tue, 3 Dec 2024 14:46:26 +0100 Subject: [PATCH] remove explicit retry in application code --- learning_loop_node/data_exchanger.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/learning_loop_node/data_exchanger.py b/learning_loop_node/data_exchanger.py index 11e4c59..f1485a0 100644 --- a/learning_loop_node/data_exchanger.py +++ b/learning_loop_node/data_exchanger.py @@ -124,9 +124,6 @@ async def download_images(self, image_uuids: List[str], image_folder: str, chunk async def _download_one_image(self, path: str, image_id: str, image_folder: str) -> None: response = await self.loop_communicator.get(path) - if response.status_code == 429: - await asyncio.sleep(1) - response = await self.loop_communicator.get(path) if response.status_code != HTTPStatus.OK: logging.error('bad status code %s for %s. Details: %s', response.status_code, path, response.text) return