You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a network request fails with a 429 or 5xx error from the server, the SDK will automatically retry the request up to 15 times with a minimum wait time of 100 milliseconds between each attempt.
963
+
964
+
To customize this behavior, create a `RetryParams` object and assign values to the `max_retry` and `min_wait_in_ms` constructor parameters. `max_retry` determines the maximum number of retries (up to 15), while `min_wait_in_ms` sets the minimum wait time between retries in milliseconds.
965
+
966
+
Apply your custom retry values by passing the object to the `ClientConfiguration` constructor's `retry_params` parameter.
967
+
968
+
```python
969
+
from openfga_sdk import ClientConfiguration, OpenFgaClient
0 commit comments