Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
databricks client 0.0.3 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
algattik authored Mar 13, 2020
1 parent bfdd713 commit 7bf4ff3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions Python/packages/databricks-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,16 @@ If using this module as part of a provisioning job, you need to call `client.ens

When the first user logs it to a new Databricks workspace, workspace provisioning is triggered,
and the API is not available until that job has completed (that usually takes under a minute,
but could take longer depending on the network configuration).
but could take longer depending on the network configuration). In that case you would get an
error such as the following when calling the API:

```
"Succeeded{"error_code":"INVALID_PARAMETER_VALUE","message":"Unknown worker environment WorkerEnvId(workerenv-4312344789891641)"}
```

The method `client.ensure_available(url="instance-pools/list", retries=100, delay_seconds=6)`
attempts connecting to the provided URL and retries as long as the workspace is in provisioning
prevents this error by attempting to
connect to the provided URL and retries as long as the workspace is in provisioning
state, or until the given number of retries has elapsed.

## Usage with Azure Active Directory
Expand Down
2 changes: 1 addition & 1 deletion Python/packages/databricks-client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='databricks_client',
version='0.0.2',
version='0.0.3',
author="Alexandre Gattiker",
author_email="[email protected]",
description="REST client for Databricks",
Expand Down

0 comments on commit 7bf4ff3

Please sign in to comment.