changed the healthcheck
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c79625a64a
commit
f17988bfa9
@ -17,7 +17,6 @@ steps:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
- name: docker-test
|
||||
image: plugins/docker
|
||||
settings:
|
||||
@ -34,4 +33,3 @@ steps:
|
||||
- dev*
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
@ -1,8 +1,6 @@
|
||||
def healthcheck_ping(req_obj, url, start=False):
|
||||
if start == True:
|
||||
url + '/start'
|
||||
def healthcheck_ping(req_obj, url):
|
||||
try:
|
||||
req_obj.get(url, timeout=10)
|
||||
req_obj.get(url, timeout=5)
|
||||
except req_obj.RequestException as e:
|
||||
# Log ping failure here...
|
||||
print("Ping failed: %s" % e)
|
Loading…
x
Reference in New Issue
Block a user