Add healthcheck

This commit is contained in:
2022-02-05 09:51:38 +03:00
parent 889dfeadcd
commit 63be8fda4f
5 changed files with 108 additions and 1 deletions

8
scripts/healthcheck.py Normal file
View File

@@ -0,0 +1,8 @@
import httpx
response = httpx.get(
"http://localhost:8080/healthcheck",
)
print(f"HEALTHCHECK STATUS: {response.status_code}")
exit(0 if response.status_code == 200 else 1)