From 9c55f5035c7930aca22503c67ba618c780eb1e22 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Fri, 6 Jun 2025 11:22:29 -0700 Subject: [PATCH] fix api health --- app/utils/api_health.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/utils/api_health.py b/app/utils/api_health.py index f9875ed8e..87ddcc99c 100644 --- a/app/utils/api_health.py +++ b/app/utils/api_health.py @@ -7,6 +7,7 @@ from requests.exceptions import RequestException logger = logging.getLogger(__name__) + # Is this right and can we use it anywhere? def get_no_x509_strict_context(): context = ssl.create_default_context() @@ -17,9 +18,7 @@ def get_no_x509_strict_context(): def is_api_down(): api_base_url = os.getenv("API_HOST_NAME") try: - response = requests.get( - api_base_url, timeout=2, verify=False - ) + response = requests.get(api_base_url, timeout=2, verify=False) is_down = response.status_code != 200 if is_down: logger.warning(