Files
telegram_files_cache_server/scripts/healthcheck.py
2023-05-06 22:11:37 +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)