Files
telegram_files_server/scripts/healthcheck.py
2023-01-08 00:09:28 +01:00

6 lines
171 B
Python

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)