Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
denniswittich committed Oct 31, 2024
2 parents 25b7c59 + acd1876 commit 5ce7cdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions learning_loop_node/data_exchanger.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ 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(f'bad status code {response.status_code} for {path}. Details: {response.text}')
return
Expand Down
1 change: 0 additions & 1 deletion learning_loop_node/detector/outbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class OutboxMode(Enum):
class Outbox():
def __init__(self) -> None:
self.log = logging.getLogger()
self.log.setLevel(logging.DEBUG)
self.path = f'{GLOBALS.data_folder}/outbox'
os.makedirs(self.path, exist_ok=True)

Expand Down

0 comments on commit 5ce7cdb

Please sign in to comment.