Fix exit code
This commit is contained in:
parent
c80837f481
commit
0a66608085
1 changed files with 2 additions and 2 deletions
|
|
@ -11,9 +11,9 @@ def healthcheck():
|
||||||
try:
|
try:
|
||||||
r = requests.get("http://localhost:5000")
|
r = requests.get("http://localhost:5000")
|
||||||
if r.ok:
|
if r.ok:
|
||||||
sys.exit(1)
|
sys.exit(0)
|
||||||
except requests.exceptions.RequestException:
|
except requests.exceptions.RequestException:
|
||||||
sys.exit(0)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue