Skip to content

Commit

Permalink
Modified generator to generate plugins
Browse files Browse the repository at this point in the history
Signed-off-by: saimedhi <[email protected]>
  • Loading branch information
saimedhi committed Mar 21, 2024
1 parent 2c0cf07 commit 27bf22f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test_opensearchpy/test_server/test_plugins/test_knn.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ def test_knn_model(self) -> None:

# Fetch the model state
try:
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')
if response['state'] != 'training':
pass
except Exception as e:
print(f"Error fetching knn model: {e}")
except Exception as error:
print(f"Error fetching knn model: {error}")
break

# Sleep for 1 minute before the next attempt
time.sleep(10)
Expand Down

0 comments on commit 27bf22f

Please sign in to comment.