Skip to content

Commit 7a38206

Browse files
committed
Change timeout value fr a strinto int
1 parent 3e8319f commit 7a38206

File tree

1 file changed

+1
-1
lines changed
  • packages/createIndexFunction

1 file changed

+1
-1
lines changed

packages/createIndexFunction/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def wait_for_index(opensearch_client, index_name, timeout=120, poll_interval=5):
4141
while True:
4242
try:
4343
if opensearch_client.indices.exists(index=index_name):
44-
health = opensearch_client.cluster.health(index=index_name, wait_for_status="yellow", timeout="5s")
44+
health = opensearch_client.cluster.health(index=index_name, wait_for_status="yellow", timeout=5)
4545
status = health.get("status")
4646
logger.info(f"Index '{index_name}' exists, health: {status}")
4747
if status in ("yellow", "green"):

0 commit comments

Comments
 (0)