From ab17cee4bd75b540d943710c49e86b3640a5e819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bournhonesque?= Date: Mon, 6 Nov 2023 10:03:24 +0100 Subject: [PATCH] fix: add timeout to robotoff request (healthcheck) --- robotoff/health.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robotoff/health.py b/robotoff/health.py index 8071196050..671a4d131d 100644 --- a/robotoff/health.py +++ b/robotoff/health.py @@ -62,7 +62,7 @@ def test_connect_influxdb(): def test_connect_robotoff_api(): logger.debug("health: testing robotoff API status") status = requests.get( - f"{settings.BaseURLProvider.robotoff()}/api/v1/status" + f"{settings.BaseURLProvider.robotoff()}/api/v1/status", timeout=10 ).json()["status"] if status != "running":