Skip to content

Commit f1205da

Browse files
author
qlands
committed
Add retries and timeouts
1 parent 1bbc384 commit f1205da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticfeeds/manager/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def create_connection(self):
213213
cnt_params["url_prefix"] = self.url_prefix
214214
if self.use_ssl:
215215
cnt_params["use_ssl"] = self.use_ssl
216-
connection = Elasticsearch([cnt_params], max_retries=1)
216+
connection = Elasticsearch([cnt_params], max_retries=100, retry_on_timeout=True, timeout=700, request_timeout=800)
217217
if connection.ping():
218218
return connection
219219
else:

0 commit comments

Comments
 (0)