We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 734ec41 commit c6f1222Copy full SHA for c6f1222
1 file changed
UPGRADING.md
@@ -442,7 +442,17 @@ training = replicate.trainings.create(
442
)
443
444
# No instance methods available
445
-# Use resource methods
+# Use client methods instead
446
+
447
+# Wait for training (no trainings.wait() available)
448
+# Poll with get() instead
449
+while True:
450
+ training = replicate.trainings.get(training_id=training.id)
451
+ if training.status in ["succeeded", "failed", "canceled"]:
452
+ break
453
+ time.sleep(1)
454
455
+# Cancel training
456
training = replicate.trainings.cancel(training_id=training.id)
457
```
458
0 commit comments