Skip to content

Commit fa8170a

Browse files
committed
Update README
1 parent 68ae32c commit fa8170a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ Error codes are as follows:
247247

248248
Certain errors are automatically retried 5 times by default, with a short exponential backoff.
249249
Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
250-
429 Rate Limit, and >=500 Internal errors are all retried by default.
250+
429 Rate Limit, and >=500 Internal errors are all retried by default for GET requests. For POST requests, only
251+
429 errors will be retried.
251252

252253
You can use the `max_retries` option to configure or disable retry settings:
253254

@@ -256,12 +257,12 @@ from runloop_api_client import Runloop
256257

257258
# Configure the default for all requests:
258259
client = Runloop(
259-
# default is 2
260+
# default is 5
260261
max_retries=0,
261262
)
262263

263264
# Or, configure per-request:
264-
client.with_options(max_retries=5).devboxes.create()
265+
client.with_options(max_retries=10).devboxes.create()
265266
```
266267

267268
### Timeouts

0 commit comments

Comments
 (0)