We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c0cf07 commit 27bf22fCopy full SHA for 27bf22f
test_opensearchpy/test_server/test_plugins/test_knn.py
@@ -85,11 +85,12 @@ def test_knn_model(self) -> None:
85
86
# Fetch the model state
87
try:
88
- response = self.client.plugins.knn.get_model(model_id=model_id, filter_path='state')['state']
+ response = self.client.plugins.knn.get_model(model_id='my-model')
89
if response['state'] != 'training':
90
pass
91
- except Exception as e:
92
- print(f"Error fetching knn model: {e}")
+ except Exception as error:
+ print(f"Error fetching knn model: {error}")
93
+ break
94
95
# Sleep for 1 minute before the next attempt
96
time.sleep(10)
0 commit comments