Skip to content

Commit 4e751f8

Browse files
authored
Add serverless_compute_id field to the config (#685)
## Changes We propose adding a new `serverless_compute_id` attribute in the config that will be used to enable serverless compute in the downstream applications. The default value to enable serverless is `serverless_compute_id = auto`, other values might be used in the future if needed. Config doesn't have to validate the value in `serverless_compute_id`, this will be done in the downstream applications. ## Tests - [x] `make test` run locally - [x] `make fmt` applied - [ ] relevant integration tests applied
1 parent 9eaaf1e commit 4e751f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

databricks/sdk/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class Config:
6666
auth_type: str = ConfigAttribute(env='DATABRICKS_AUTH_TYPE')
6767
cluster_id: str = ConfigAttribute(env='DATABRICKS_CLUSTER_ID')
6868
warehouse_id: str = ConfigAttribute(env='DATABRICKS_WAREHOUSE_ID')
69+
serverless_compute_id: str = ConfigAttribute(env='DATABRICKS_SERVERLESS_COMPUTE_ID')
6970
skip_verify: bool = ConfigAttribute()
7071
http_timeout_seconds: float = ConfigAttribute()
7172
debug_truncate_bytes: int = ConfigAttribute(env='DATABRICKS_DEBUG_TRUNCATE_BYTES')

0 commit comments

Comments
 (0)