Skip to content

Commit 869ccdc

Browse files
committed
Lower polling speed
Signed-off-by: Ben Firshman <[email protected]>
1 parent 711a0a3 commit 869ccdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

replicate/prediction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Prediction(BaseModel):
2121
def wait(self):
2222
"""Wait for prediction to finish."""
2323
while self.status not in ["succeeded", "failed", "canceled"]:
24-
time.sleep(0.1)
24+
time.sleep(0.5)
2525
self.reload()
2626

2727
def output_iterator(self) -> Iterator[Any]:
@@ -33,7 +33,7 @@ def output_iterator(self) -> Iterator[Any]:
3333
for output in new_output:
3434
yield output
3535
previous_output = output
36-
time.sleep(0.1)
36+
time.sleep(0.5)
3737
self.reload()
3838

3939
if self.status == "failed":

0 commit comments

Comments
 (0)