Skip to content

Commit a1eeecf

Browse files
committed
Add note about retries to readme
1 parent c06f4ed commit a1eeecf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ client.execute(...)
110110
Service accounts are also used for delegation in Google Apps domains. The target user for impersonation is specified by setting the `:person` parameter to the user's email address
111111
in the credentials. Detailed instructions on how to enable delegation for your domain can be found at [developers.google.com](https://developers.google.com/drive/delegation).
112112

113+
### Automatic Retries & Backoff
114+
115+
The API client can automatically retry requests for recoverable errors. To enable retries, set the `client.retries` property to
116+
the number of additional attempts. To avoid flooding servers, retries invovle a 1 second delay that increases on each subsequent retry.
117+
118+
The default value for retries is 0, but will be enabled by default in future releases.
113119

114120
### Batching Requests
115121

0 commit comments

Comments
 (0)