Increased delete_docs timeout value

This commit is contained in:
Simon 2018-07-12 11:30:16 -04:00
parent 290322dfa7
commit c0327fecda

View File

@ -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: except elasticsearch.exceptions.ConflictError:
print("Error: multiple delete tasks at the same time") print("Error: multiple delete tasks at the same time")
except elasticsearch.exceptions.ConnectionTimeout: except Exception:
print("Timeout during delete!") print("Timeout during delete!")
time.sleep(30) time.sleep(30)