changed the healthcheck
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
jblu 2024-06-03 12:47:31 -05:00
parent c79625a64a
commit f17988bfa9
7 changed files with 269 additions and 273 deletions

View File

@ -17,7 +17,6 @@ steps:
- main - main
event: event:
- push - push
- pull_request
- name: docker-test - name: docker-test
image: plugins/docker image: plugins/docker
settings: settings:
@ -34,4 +33,3 @@ steps:
- dev* - dev*
event: event:
- push - push
- pull_request

View File

@ -1,8 +1,6 @@
def healthcheck_ping(req_obj, url, start=False): def healthcheck_ping(req_obj, url):
if start == True:
url + '/start'
try: try:
req_obj.get(url, timeout=10) req_obj.get(url, timeout=5)
except req_obj.RequestException as e: except req_obj.RequestException as e:
# Log ping failure here... # Log ping failure here...
print("Ping failed: %s" % e) print("Ping failed: %s" % e)