From 83e1b5f0290be96886f77d5b610c94fa0ae8073d Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Tue, 14 Jun 2022 16:34:10 +0200 Subject: [PATCH] added retry to clear bucket --- pyinfra/storage/storage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyinfra/storage/storage.py b/pyinfra/storage/storage.py index c93ccf7..bab0714 100644 --- a/pyinfra/storage/storage.py +++ b/pyinfra/storage/storage.py @@ -37,6 +37,7 @@ class Storage: def get_all_objects(self, bucket_name): return self.__adapter.get_all_objects(bucket_name) + @retry(tries=3, delay=5, jitter=(1, 3)) def clear_bucket(self, bucket_name): return self.__adapter.clear_bucket(bucket_name)