seafile-backup/HealthchecksIO.py
jblu f17988bfa9
All checks were successful
continuous-integration/drone/push Build is passing
changed the healthcheck
2024-06-03 12:47:31 -05:00

6 lines
199 B
Python

def healthcheck_ping(req_obj, url):
try:
req_obj.get(url, timeout=5)
except req_obj.RequestException as e:
# Log ping failure here...
print("Ping failed: %s" % e)