fix bug time out
This commit is contained in:
@@ -46,11 +46,11 @@ class ElasticHelper:
|
||||
self.path_mappings = path_mappings
|
||||
|
||||
if es_pass == "":
|
||||
self.es = AsyncElasticsearch(es_url,request_timeout=4000)
|
||||
self.es = AsyncElasticsearch(es_url,request_timeout=500)
|
||||
else:
|
||||
self.es = AsyncElasticsearch(
|
||||
es_url,
|
||||
http_auth=(es_user, es_pass),
|
||||
http_auth=(es_user, es_pass),request_timeout=500
|
||||
)
|
||||
|
||||
# print(es_url)
|
||||
|
||||
Reference in New Issue
Block a user