From fb3733d9e4116c801afe04d72645ef601be64d3d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 14 Feb 2022 12:09:09 -0800 Subject: bugfix: elasticsearch per-request timeout for _health (arg name) --- fatcat_scholar/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py index 5cf916c..1df7fd8 100644 --- a/fatcat_scholar/search.py +++ b/fatcat_scholar/search.py @@ -466,7 +466,7 @@ def es_scholar_index_alive() -> bool: resp = es_client.count( body=None, index=settings.ELASTICSEARCH_QUERY_FULLTEXT_INDEX, - timeout=90.0, + request_timeout=90.0, ) except elasticsearch.exceptions.RequestError as e_raw: if e_raw.status_code == 404: -- cgit v1.2.3