Skip to content

Commit

Permalink
fix: add timeout to robotoff request (healthcheck)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Nov 6, 2023
1 parent d5562c1 commit ab17cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robotoff/health.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit ab17cee

Please sign in to comment.