Skip to content

Commit

Permalink
Increase timeout duration in get_kinship function to enhance API requ…
Browse files Browse the repository at this point in the history
…est reliability

Updated the timeout parameter in the get_kinship function from 30 seconds to 60 seconds. This change aims to improve the robustness of API calls to the kinship service, reducing the likelihood of timeouts during data retrieval and enhancing overall application performance.
  • Loading branch information
jhagberg committed Jan 3, 2025
1 parent 34904cc commit 0ec8a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/herdbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ def get_kinship(g_id):
response = requests.get(
"http://{}:{}/kinship/{}".format(settings.rapi.host, settings.rapi.port, g_id),
params={"update_data": "TRUE"},
timeout=30,
timeout=60,
)

if response.status_code == 200:
Expand Down

0 comments on commit 0ec8a11

Please sign in to comment.