diff --git a/pytest.ini b/pytest.ini index 0f70871b..6a279402 100644 --- a/pytest.ini +++ b/pytest.ini @@ -3,5 +3,6 @@ filterwarnings = ignore:Elasticsearch built-in security: asyncio_mode=strict +# asyncio_default_fixture_loop_scope=session log_cli = True \ No newline at end of file diff --git a/yente/provider/opensearch.py b/yente/provider/opensearch.py index 66e1657c..487d314c 100644 --- a/yente/provider/opensearch.py +++ b/yente/provider/opensearch.py @@ -22,7 +22,7 @@ class OpenSearchProvider(SearchProvider): async def create(cls) -> "OpenSearchProvider": """Get elasticsearch connection.""" kwargs: Dict[str, Any] = dict( - request_timeout=30, + request_timeout=60, retry_on_timeout=True, max_retries=10, hosts=[settings.INDEX_URL],