Compare commits
3 Commits
c79625a64a
...
main
Author | SHA1 | Date | |
---|---|---|---|
ae8320118a | |||
07fedd0b0b | |||
f17988bfa9 |
@ -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
|
|
@ -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)
|
@ -79,7 +79,7 @@ apprise_body = os.getenv("apprise_body")
|
|||||||
|
|
||||||
# healthcheck - Tell healthchecks.io we are starting the backup
|
# healthcheck - Tell healthchecks.io we are starting the backup
|
||||||
if healthcheck:
|
if healthcheck:
|
||||||
healthcheck_ping(r, healthcheck_url, start=True)
|
healthcheck_ping(r, healthcheck_url.rstrip("/") + "/start")
|
||||||
|
|
||||||
# Stop seafile and seafile hub
|
# Stop seafile and seafile hub
|
||||||
if docker_command:
|
if docker_command:
|
||||||
|
Reference in New Issue
Block a user