-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add machinelearning wait commands #544
Add machinelearning wait commands #544
Conversation
* DataSourceAvailable: Wait until JMESPath query Results[].Status returns COMPLETED for all elements when polling with describe-data-sources. * MLModelAvailable: Wait until JMESPath query Results[].Status returns COMPLETED for all elements when polling with describe-ml-models. * EvaluationAvailable: Wait until JMESPath query Results[].Status returns COMPLETED for all elements when polling with describe-evaluations. * BatchPredictionAvailable: Wait until JMESPath query Results[].Status returns COMPLETED for all elements when polling with describe-batch-predictions.
Awesome, thanks! |
1 similar comment
{ | ||
"expected": "FAILED", | ||
"matcher": "pathAny", | ||
"state": "success", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be state: failure
Looks good, just had the same feedback as the route53 changes. We can remove implicit retries, and the error states should be failures. I don't mind updating the code to remove these. |
@jamesls I am fine with you updating the code. |
Cool, merged. Thanks for the PR. |
machinelearnig's create operations are basically asynchronous but there's no wait commands, so I've added following wait commands.
Wait until JMESPath query Results[].Status returns COMPLETED for all elements when polling with describe-data-sources.
Useful for
aws machinelearning create-data-source-from-s3
operation.Wait until JMESPath query Results[].Status returns COMPLETED for all elements when polling with describe-ml-models.
Useful for
aws machinelearning create-ml-model
operation.Wait until JMESPath query Results[].Status returns COMPLETED for all elements when polling with describe-evaluations.
Useful for
aws machinelearning create-evaluation
operation.Wait until JMESPath query Results[].Status returns COMPLETED for all elements when polling with describe-batch-predictions.
Useful for
aws machinelearning create-batch-prediction
operation.Feedback is welcome.