Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix job_cluster.num_workers in databricks_job #1284

Merged
merged 1 commit into from
May 5, 2022
Merged

Fix job_cluster.num_workers in databricks_job #1284

merged 1 commit into from
May 5, 2022

Conversation

nfx
Copy link
Contributor

@nfx nfx commented Apr 29, 2022

Apply standard schema modification rules to num_workers field in shared job clusters.

Fix #1262

Apply standard schema modification rules to `num_workers` field in shared job clusters.

Fix #1262
@nfx nfx requested a review from a team April 29, 2022 12:05
@codecov
Copy link

codecov bot commented Apr 29, 2022

Codecov Report

Merging #1284 (4338a3c) into master (7612114) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1284   +/-   ##
=======================================
  Coverage   90.57%   90.57%           
=======================================
  Files         118      118           
  Lines        9970     9971    +1     
=======================================
+ Hits         9030     9031    +1     
  Misses        559      559           
  Partials      381      381           
Impacted Files Coverage Δ
jobs/resource_job.go 95.19% <100.00%> (+0.02%) ⬆️

@nfx nfx merged commit 0cb60f3 into master May 5, 2022
@nfx nfx deleted the fix/1262 branch May 5, 2022 10:45
@nfx nfx mentioned this pull request May 5, 2022
@@ -450,6 +450,7 @@ var jobSchema = common.StructToSchema(JobSettings{},
func(s map[string]*schema.Schema) map[string]*schema.Schema {
jobSettingsSchema(&s, "")
jobSettingsSchema(&s["task"].Elem.(*schema.Resource).Schema, "task.0.")
jobSettingsSchema(&s["job_cluster"].Elem.(*schema.Resource).Schema, "job_cluster.0.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about jobs with multiple tasks?

I assume .0. is a proxy for .N.?

michael-berk pushed a commit to michael-berk/terraform-provider-databricks that referenced this pull request Feb 15, 2023
Apply standard schema modification rules to `num_workers` field in shared job clusters.

Fix databricks#1262
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ISSUE] Shared Job Cluster block incompatible with autoscale
2 participants