Skip to content

Commit 01e0ae7

Browse files
author
Natan Tolparov
committed
feat(retries): update readme
1 parent 9d9cad2 commit 01e0ae7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,14 @@ from yandexcloud import SDK, RetryPolicy
166166
sdk = SDK(retry_policy=RetryPolicy())
167167
```
168168

169+
SDK provide different modes for retry throttling policy:
170+
171+
* `persistent` is suitable when you use SDK in any long-lived application, when SDK instance will live long enough for manage budget;
172+
* `temporary` is suitable when you use SDK in any short-lived application, e.g. scripts or CI/CD.
173+
174+
By default, SDK will use temporary mode, but you can change it through `throttling_mode` argument.
175+
176+
169177
## Contributing
170178
### Dependencies
171179
We use [uv](https://docs.astral.sh/uv) to manage dependencies and run commands in Makefile.

0 commit comments

Comments
 (0)