Skip to content
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

Merged
merged 1 commit into from
Jun 24, 2015
Merged

Add machinelearning wait commands #544

merged 1 commit into from
Jun 24, 2015

Conversation

quiver
Copy link
Contributor

@quiver quiver commented May 30, 2015

machinelearnig's create operations are basically asynchronous but there's no wait commands, so I've added following wait commands.

  • DataSourceAvailable:
    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.
  • MLModelAvailable:
    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.
  • EvaluationAvailable:
    Wait until JMESPath query Results[].Status returns COMPLETED for all elements when polling with describe-evaluations.
    Useful for aws machinelearning create-evaluation operation.
  • BatchPredictionAvailable:
    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.

* 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.
@jamesls
Copy link
Member

jamesls commented Jun 1, 2015

Awesome, thanks!

@jamesls jamesls self-assigned this Jun 1, 2015
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 95.88% when pulling 3e0d541 on quiver:add-machinelearning-wait-commands into 80b0161 on boto:develop.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 95.88% when pulling 3e0d541 on quiver:add-machinelearning-wait-commands into 80b0161 on boto:develop.

@jamesls jamesls added the enhancement This issue requests an improvement to a current feature. label Jun 8, 2015
{
"expected": "FAILED",
"matcher": "pathAny",
"state": "success",
Copy link
Member

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

@jamesls
Copy link
Member

jamesls commented Jun 24, 2015

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.

cc @kyleknap @mtdowling

@kyleknap
Copy link
Contributor

@jamesls I am fine with you updating the code.

@jamesls jamesls merged commit 3e0d541 into boto:develop Jun 24, 2015
@jamesls
Copy link
Member

jamesls commented Jun 24, 2015

Cool, merged. Thanks for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue requests an improvement to a current feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants