From c9c1827f5054b8ab595c5f0af97c87a44b12f70d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 10 Jan 2022 18:33:00 -0800 Subject: elasticsearch: bump query timeout to 40 seconds (from 25) --- fatcat_scholar/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py index b99a661..57ee71c 100644 --- a/fatcat_scholar/search.py +++ b/fatcat_scholar/search.py @@ -100,7 +100,7 @@ class FulltextHits(BaseModel): # global sync client connection -es_client = elasticsearch.Elasticsearch(settings.ELASTICSEARCH_QUERY_BASE, timeout=25.0) +es_client = elasticsearch.Elasticsearch(settings.ELASTICSEARCH_QUERY_BASE, timeout=40.0) def transform_es_results(resp: Response) -> List[dict]: -- cgit v1.2.3