Skip to content

Commit b0dc196

Browse files
author
Marian Ganisin
authored
Merge pull request 3scale-qe#123 from mganisin/retry_wait_for_tenant
Change strategy for wait_for_tenant
2 parents dfbd6b7 + ab931c9 commit b0dc196

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

threescale_api/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ def __init__(self, url: str, token: str,
5858
# here to mitigate the problem. This requires proper fix in checks
5959
time.sleep(wait)
6060

61-
@backoff.on_predicate(backoff.fibo, lambda ready: not ready, max_tries=8, jitter=None)
61+
@backoff.on_predicate(
62+
backoff.constant, lambda ready: not ready, interval=6, max_tries=90, jitter=None)
6263
def wait_for_tenant(self) -> bool:
6364
"""
6465
When True is returned, there is some chance the tenant is actually ready.

0 commit comments

Comments
 (0)