traefik can give 502 while starting up

This commit is contained in:
Min RK
2018-07-30 14:33:02 +02:00
parent c2d6cb38cd
commit 581b4969f5

View File

@@ -262,7 +262,7 @@ def ensure_jupyterhub_running(times=4):
urlopen('http://127.0.0.1')
return
except HTTPError as h:
if h.code in [404, 503]:
if h.code in [404, 502, 503]:
# May be transient
time.sleep(1)
continue