Skip to content

Commit e9fe3ce

Browse files
committed
Increase timeout in wait_for_index_aoss function
1 parent eb18563 commit e9fe3ce

File tree

1 file changed

+3
-3
lines changed
  • packages/createIndexFunction

1 file changed

+3
-3
lines changed

packages/createIndexFunction/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_opensearch_client(endpoint):
3333
)
3434

3535

36-
def wait_for_index_aoss(opensearch_client, index_name, timeout=60, poll_interval=3):
36+
def wait_for_index_aoss(opensearch_client, index_name, timeout=180, poll_interval=3):
3737
"""
3838
Wait until the index exists in OpenSearch Serverless (AOSS).
3939
AOSS does not support cluster health checks, so existence == ready.
@@ -85,11 +85,11 @@ def create_and_wait_for_index(client, index_name):
8585
},
8686
"AMAZON_BEDROCK_METADATA": {
8787
"type": "text",
88-
"index": "false",
88+
"index": False,
8989
},
9090
"AMAZON_BEDROCK_TEXT_CHUNK": {
9191
"type": "text",
92-
"index": "true",
92+
"index": True,
9393
},
9494
}
9595
},

0 commit comments

Comments
 (0)