increased timeout for elastic rqeuests up to 30 seconds
This commit is contained in:
@@ -45,7 +45,7 @@ def search(
|
||||
}
|
||||
}
|
||||
|
||||
with httpx.Client() as client:
|
||||
with httpx.Client(timeout=httpx.Timeout(30.0)) as client:
|
||||
response = client.post(
|
||||
f"{config.settings.elasticsearch_url}/{index}/_search",
|
||||
json=payload,
|
||||
|
||||
Reference in New Issue
Block a user