Skip to content

Commit 6210fc8

Browse files
Fix WorkspaceClient example in the main README.md file. (#1107)
## What changes are proposed in this pull request? Fix example in the main `README.md` file. ## How is this tested? N/A NO_CHANGELOG=true --------- Signed-off-by: Renaud Hartert <[email protected]>
1 parent c365716 commit 6210fc8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,12 @@ For all authentication methods, you can override the default behavior in client
235235
| `debug_headers` | _(Boolean)_ `true` to debug HTTP headers of requests made by the application. Default is `false`, as headers contain sensitive data, such as access tokens. | `DATABRICKS_DEBUG_HEADERS` |
236236
| `rate_limit` | _(Integer)_ Maximum number of requests per second made to Databricks REST API. | `DATABRICKS_RATE_LIMIT` |
237237

238-
For example, to turn on debug HTTP headers:
238+
For example, here's how you can update the overall retry timeout:
239239

240240
```python
241241
from databricks.sdk import WorkspaceClient
242-
w = WorkspaceClient(debug_headers=True)
242+
from databricks.sdk.core import Config
243+
w = WorkspaceClient(config=Config(retry_timeout_seconds=300))
243244
# Now call the Databricks workspace APIs as desired...
244245
```
245246

0 commit comments

Comments
 (0)