We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3726a3f + 9603969 commit a2a680dCopy full SHA for a2a680d
1 file changed
rootfs/api/models/app.py
@@ -458,8 +458,12 @@ def verify_application_health(self, **kwargs):
458
# Uses time module to account for the timout value of 3 seconds
459
start = time.time()
460
for _ in range(10):
461
- # http://docs.python-requests.org/en/master/user/advanced/#timeouts
462
- response = session.get(url, timeout=req_timeout)
+ try:
+ # http://docs.python-requests.org/en/master/user/advanced/#timeouts
463
+ response = session.get(url, timeout=req_timeout)
464
+ except requests.exceptions.ConnectTimeout:
465
+ # We are fine with timeouts, lets keep trying
466
+ continue
467
468
# 30 second timeout (timout per request * 10)
469
if (time.time() - start) > (req_timeout * 10):
0 commit comments