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