feat: add classic cluster option for Switch job deployment#2222
feat: add classic cluster option for Switch job deployment#2222
Conversation
Add prompt during install-transpile to allow users to choose between serverless compute (default) and classic job cluster for Switch jobs. This provides a workaround for workspaces where serverless access controls via usage policies require explicit policy selection.
|
✅ 129/129 passed, 6 flaky, 5 skipped, 16m47s total Flaky tests:
Running from acceptance #3429 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2222 +/- ##
==========================================
+ Coverage 64.05% 64.07% +0.02%
==========================================
Files 100 100
Lines 8624 8633 +9
Branches 893 894 +1
==========================================
+ Hits 5524 5532 +8
- Misses 2928 2929 +1
Partials 172 172 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@hiroyukinakazato-db Can we change |
I will recommend using environmental variables like |
|
I like the idea of using an env variable. @hiroyukinakazato-db let us know what you think! |
|
Replace interactive prompt with environment variable for Switch job compute type selection. Set LAKEBRIDGE_CLUSTER_TYPE=CLASSIC to use classic job cluster instead of serverless (default). This is an internal, non-documented flag for workspaces where serverless is not available.
|
@sundarshankar89 @gueniai Updated PR #2222 to use |
sundarshankar89
left a comment
There was a problem hiding this comment.
small nit: this looks good.






Changes
What does this PR do?
Add support for classic job cluster via environment variable
LAKEBRIDGE_CLUSTER_TYPE=CLASSICfor Switch jobs. This provides a workaround for workspaces where serverless is not available.Relevant implementation details
switch_use_serverlessflag toLakebridgeConfiguration(not persisted, used only during install)LAKEBRIDGE_CLUSTER_TYPE=CLASSICtriggers classic cluster modeSwitchDeployment.install()now acceptsuse_serverlessparameteruse_serverless=False, creates a job cluster with:USER_ISOLATIONdata security modeUsage
Caveats/things to watch out for when reviewing:
Linked issues
Resolves #2219
Functionality
databricks labs lakebridge install-transpileTests