The helper function Client.Run only returns Prediction.Output
|
return prediction.Output, err |
I ran a prediction that failed and Client.Run returned non -nil error even though the Prediction had failed
- Prediction.Status was "failed" wait returned non-nil error
I'm not sure under what conditions I could use Client.Run as opposed to calling CreatePrediction and Wait myself. Since it looks like Client.Run doesn't let me check whether the prediction succeeded or not I don't think I can rely on it and need to use CreatePrediction and Wait so I can check that the request actually worked.
The helper function
Client.Runonly returns Prediction.Outputreplicate-go/run.go
Line 25 in 8328597
I ran a prediction that failed and
Client.Runreturned non -nil error even though the Prediction had failedI'm not sure under what conditions I could use
Client.Runas opposed to calling CreatePrediction and Wait myself. Since it looks like Client.Run doesn't let me check whether the prediction succeeded or not I don't think I can rely on it and need to use CreatePrediction and Wait so I can check that the request actually worked.