2024-05-28 15:43:54 -05:00
|
|
|
def healthcheck_ping(req_obj, url, start=False):
|
|
|
|
if start == True:
|
|
|
|
url + '/start'
|
2023-08-26 02:46:07 -05:00
|
|
|
try:
|
|
|
|
req_obj.get(url, timeout=10)
|
|
|
|
except req_obj.RequestException as e:
|
|
|
|
# Log ping failure here...
|
|
|
|
print("Ping failed: %s" % e)
|