From c0327fecdaf726bda9174388394f52716bcf7c97 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 12 Jul 2018 11:30:16 -0400 Subject: [PATCH] Increased delete_docs timeout value --- search/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search/search.py b/search/search.py index 75ecae7..c8073af 100644 --- a/search/search.py +++ b/search/search.py @@ -105,10 +105,10 @@ class ElasticSearchEngine(SearchEngine): } } } - }, index=self.index_name, request_timeout=40) + }, index=self.index_name, request_timeout=200) except elasticsearch.exceptions.ConflictError: print("Error: multiple delete tasks at the same time") - except elasticsearch.exceptions.ConnectionTimeout: + except Exception: print("Timeout during delete!") time.sleep(30)