diff --git a/scripts/healthcheck.py b/scripts/healthcheck.py index 37014c1..31bafa8 100644 --- a/scripts/healthcheck.py +++ b/scripts/healthcheck.py @@ -2,14 +2,10 @@ import requests import os port = os.environ.get('LT_PORT', '5000') -response = requests.post( - url=f'http://localhost:{port}/translate', +response = requests.get( + url=f'http://localhost:{port}/health', headers={'Content-Type': 'application/json'}, - json={ - 'q': 'Hello World!', - 'source': 'en', - 'target': 'en' - }, + json={}, timeout=60 ) response.raise_for_status() # if server unavailable then requests with raise exception and healthcheck will fail