We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42ebae0 commit d4b5f58Copy full SHA for d4b5f58
packages/createIndexFunction/app.py
@@ -114,7 +114,9 @@ def handler(event, context):
114
else:
115
logger.info(f"Index {params['index']} already exists")
116
# Wait for the index to be available and ready
117
- wait_for_index(opensearch_client, params["index"])
+ wait_for_index(opensearch_client, params["index"], timeout=300)
118
+ logger.info(f"Index {params['index']} is ready.")
119
+ time.sleep(10)
120
logger.info(f"Index {params['index']} is ready.")
121
except Exception as e:
122
logger.error(f"Error creating or waiting for index: {e}")
0 commit comments