Files
telegram_files_server/scripts/healthcheck.py
2023-05-14 16:06:01 +02:00

7 lines
172 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)