Skip to content

Instantly share code, notes, and snippets.

@guyernest
Created May 18, 2019 14:41
Show Gist options
  • Select an option

  • Save guyernest/8959a132b44b056fb8877e772e281555 to your computer and use it in GitHub Desktop.

Select an option

Save guyernest/8959a132b44b056fb8877e772e281555 to your computer and use it in GitHub Desktop.
Forecast Pipeline 05
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