@@ -6,44 +6,29 @@ variables:
66 cluster :
77 type : complex
88 default :
9- spark_version : 15.4.x-scala2.12
10- node_type_id : i3.xlarge
119 num_workers : 1
1210
1311resources :
1412 clusters :
1513 source :
16- cluster_name : source
17- spark_version : 15.4.x-scala2.12
18- node_type_id : i3.xlarge
1914 num_workers : 2
2015 jobs :
2116 job :
2217 name : job
2318 tasks :
24- - task_key : task
25- notebook_task :
26- notebook_path : /Workspace/notebook
27- # Replaced by bundle.cluster_id: the reference below new_cluster must go too.
19+ # bundle.cluster_id replaces new_cluster. The reference below it must go too.
20+ - task_key : scalar_ref
2821 new_cluster :
29- spark_version : 15.4.x-scala2.12
30- node_type_id : i3.xlarge
3122 num_workers : ${resources.clusters.source.num_workers}
32- - task_key : task_var
33- notebook_task :
34- notebook_path : /Workspace/notebook
35- # A reference at new_cluster must not bring it back either.
23+ # A reference to the whole new_cluster must not bring it back.
24+ - task_key : variable_ref
3625 new_cluster : ${var.cluster}
37- - task_key : task_resource_ref
38- notebook_task :
39- notebook_path : /Workspace/notebook
40- # A reference to the new_cluster of another job is resolved after the override.
26+ # A reference to the new_cluster of another job is resolved after the override.
27+ - task_key : resource_ref
4128 new_cluster : ${resources.jobs.other.job_clusters[0].new_cluster}
4229 other :
4330 name : other
4431 job_clusters :
4532 - job_cluster_key : shared
4633 new_cluster :
47- spark_version : 15.4.x-scala2.12
48- node_type_id : i3.xlarge
4934 num_workers : 3
0 commit comments