Skip to content

Commit

Permalink
maybe set a cap
Browse files Browse the repository at this point in the history
  • Loading branch information
dlwh committed Jan 7, 2025
1 parent 6e2a924 commit 5d14efc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/levanter/store/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,8 @@ async def _copy_one_array(dest_array: JaggedArrayStore, source_array: JaggedArra
logger.info("Rate limit exceeded. Retrying.")
await asyncio.sleep(delay)
delay *= 2
if delay > 60:
raise

futures.append(offset_future)

Expand Down

0 comments on commit 5d14efc

Please sign in to comment.