Increase attempts as it failed on fresh Swarm host

This commit is contained in:
Tim Möhlmann
2018-10-07 02:10:13 +03:00
parent 716ed16f34
commit 0817629869
3 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ from tenacity import retry
convert = lambda src, dst: open(dst, "w").write(jinja2.Template(open(src).read()).render(**os.environ))
@retry(stop=tenacity.stop_after_attempt(10), wait=tenacity.wait_random(min=2, max=5))
@retry(stop=tenacity.stop_after_attempt(100), wait=tenacity.wait_random(min=2, max=5))
def resolve():
os.environ["FRONT_ADDRESS"] = socket.gethostbyname(os.environ.get("FRONT_ADDRESS", "front"))