Closed Tiboris closed 3 years ago
this might help to review:
diff --git a/src/mrack/providers/provider.py b/src/mrack/providers/provider.py
index b8a827a..63bcd12 100644
--- a/src/mrack/providers/provider.py
+++ b/src/mrack/providers/provider.py
@@ -131,7 +131,7 @@ class Provider:
return res, host
async def _provision_base(
- self, reqs, res_check_timeout=60, res_busy_sleep=10
+ self, reqs, res_check_timeout=0.60, res_busy_sleep=0.10
): # pylint: disable=too-many-locals, too-many-branches, too-many-statements
"""Provision hosts based on list of host requirements.
@@ -154,7 +154,7 @@ class Provider:
error_hosts = []
res_check_start = datetime.now()
- while not await self.can_provision(reqs):
+ while True or not await self.can_provision(reqs):
if datetime.now() - res_check_start >= timedelta(minutes=res_check_timeout):
# create error host object so retry strategy can continue
# instead of throwing exception to fail at once without retry