Skip to content

Commit 8d43117

Browse files
databricks bundle init with default python: show serverless prompt, and default to yes (#3051)
## Changes when running ```bash databricks bundle init ``` and choosing default python, the option to use serverless should appear, and default to yes. ## Why At the moment, I'm not sure most users know the serverless option is available. The field is suggesting serverless, so we should make the default our preference. ## Tests I ran `./cli bundle init` <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. --> --------- Co-authored-by: Lennart Kats (databricks) <lennart.kats@databricks.com>
1 parent 6dda24e commit 8d43117

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

NEXT_CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* Remove support for deprecated `experimental/pydabs` config, use `experimental/python` instead. See [Configuration in Python
1414
](https://docs.databricks.com/dev-tools/bundles/python). ([#3102](https://github.com/databricks/cli/pull/3102))
1515

16+
* The `default-python` template now prompts if you want to use serverless compute (default to `yes`) ([#3051](https://github.com/databricks/cli/pull/3051)).
17+
1618
### API Changes
1719
* Removed `databricks custom-llms` command group.
1820
* Added `databricks ai-builder` command group.

libs/template/templates/default-python/databricks_template_schema.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@
3232
},
3333
"serverless": {
3434
"type": "string",
35-
"default": "no",
36-
"enum": ["no", "yes"],
35+
"default": "yes",
36+
"enum": ["yes", "no"],
3737
"description": "Use serverless compute",
38-
"skip_prompt_if": {},
3938
"order": 5
4039
}
4140
},

0 commit comments

Comments
 (0)