From 3ca4131dff4c31dc02514e1e59a705b0da7b9f0a Mon Sep 17 00:00:00 2001 From: Radovan Date: Thu, 11 Apr 2024 14:50:55 +0300 Subject: [PATCH] Add a retry annotation to list_blobs (#744) --- medusa/storage/abstract_storage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/medusa/storage/abstract_storage.py b/medusa/storage/abstract_storage.py index 940d9297..d21aa22c 100644 --- a/medusa/storage/abstract_storage.py +++ b/medusa/storage/abstract_storage.py @@ -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))