Skip to content

Commit 3953943

Browse files
committed
increase elastic client timeout
1 parent 349e195 commit 3953943

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/ci-pipeline.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
qdrant/qdrant
123123
124124
- name: Wait for DB to start
125-
run: sleep 60
125+
run: sleep 30
126126

127127
- name: Run embed job
128128
env:

vector_db/elastic_provider.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,18 @@ def __init__( # pylint: disable=too-many-arguments,too-many-positional-argument
6565
"""
6666
super().__init__(embeddings)
6767

68+
# We use an incresed timeout since resources are constrained in CI environments
69+
es_params = {
70+
"timeout": 60,
71+
}
72+
6873
self.db = ElasticsearchStore(
6974
embedding=self.embeddings,
7075
es_url=url,
7176
es_user=user,
7277
es_password=password,
7378
index_name=index,
79+
es_params=es_params,
7480
)
7581

7682
logger.info("Connected to Elasticsearch at %s (index: %s)", url, index)

0 commit comments

Comments
 (0)