Created
May 18, 2019 14:41
-
-
Save guyernest/8959a132b44b056fb8877e772e281555 to your computer and use it in GitHub Desktop.
Forecast Pipeline 05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| forecast.deploy_predictor(PredictorName=predictorName) | |
| while True: | |
| deployedPredictorStatus = forecast.describe_deployed_predictor( | |
| PredictorName=predictorName | |
| )['Status'] | |
| print(deployedPredictorStatus) | |
| if deployedPredictorStatus != 'ACTIVE' and deployedPredictorStatus != 'FAILED': | |
| sleep(30) | |
| else: | |
| break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment