Skip to content

Commit

Permalink
Add machinelearning wait commands
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
quiver committed May 30, 2015
1 parent 80b0161 commit 3e0d541
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions botocore/data/machinelearning/2014-12-12/waiters-2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"version": 2,
"waiters": {
"DataSourceAvailable": {
"delay": 30,
"operation": "DescribeDataSources",
"maxAttempts": 60,
"acceptors": [
{
"expected": "COMPLETED",
"matcher": "pathAll",
"state": "success",
"argument": "Results[].Status"
},
{
"expected": "FAILED",
"matcher": "pathAny",
"state": "success",
"argument": "Results[].Status"
},
{
"expected": "INPROGRESS",
"matcher": "pathAny",
"state": "retry",
"argument": "Results[].Status"
}
]
},
"MLModelAvailable": {
"delay": 30,
"operation": "DescribeMLModels",
"maxAttempts": 60,
"acceptors": [
{
"expected": "COMPLETED",
"matcher": "pathAll",
"state": "success",
"argument": "Results[].Status"
},
{
"expected": "FAILED",
"matcher": "pathAny",
"state": "success",
"argument": "Results[].Status"
},
{
"expected": "INPROGRESS",
"matcher": "pathAny",
"state": "retry",
"argument": "Results[].Status"
}
]
},
"EvaluationAvailable": {
"delay": 30,
"operation": "DescribeEvaluations",
"maxAttempts": 60,
"acceptors": [
{
"expected": "COMPLETED",
"matcher": "pathAll",
"state": "success",
"argument": "Results[].Status"
},
{
"expected": "FAILED",
"matcher": "pathAny",
"state": "success",
"argument": "Results[].Status"
},
{
"expected": "INPROGRESS",
"matcher": "pathAny",
"state": "retry",
"argument": "Results[].Status"
}
]
},
"BatchPredictionAvailable": {
"delay": 30,
"operation": "DescribeBatchPredictions",
"maxAttempts": 60,
"acceptors": [
{
"expected": "COMPLETED",
"matcher": "pathAll",
"state": "success",
"argument": "Results[].Status"
},
{
"expected": "FAILED",
"matcher": "pathAny",
"state": "success",
"argument": "Results[].Status"
},
{
"expected": "INPROGRESS",
"matcher": "pathAny",
"state": "retry",
"argument": "Results[].Status"
}
]
}
}
}

0 comments on commit 3e0d541

Please sign in to comment.