Skip to content

Commit

Permalink
remove explicit retry in application code
Browse files Browse the repository at this point in the history
  • Loading branch information
denniswittich committed Dec 3, 2024
1 parent bf30bd5 commit 1011b1e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions learning_loop_node/data_exchanger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1011b1e

Please sign in to comment.