Skip to content

Commit

Permalink
Add a retry annotation to list_blobs (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvoncek authored Apr 11, 2024
1 parent 3e98d9a commit 3ca4131
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions medusa/storage/abstract_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def list_objects(self, path=None):

return objects

@retry(stop_max_attempt_number=7, wait_exponential_multiplier=10000, wait_exponential_max=120000)
def list_blobs(self, prefix=None):
loop = self.get_or_create_event_loop()
objects = loop.run_until_complete(self._list_blobs(prefix))
Expand Down

0 comments on commit 3ca4131

Please # to comment.