From c1c7d22902d13755560c283c2cac53cb96aab5d9 Mon Sep 17 00:00:00 2001 From: Radovan Zvoncek Date: Thu, 11 Apr 2024 13:06:53 +0300 Subject: [PATCH] Add a retry annotation to list_blobs --- 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))