Skip to content

Commit 9cbd4bb

Browse files
committed
update
1 parent 8ca30b5 commit 9cbd4bb

File tree

5 files changed

+135
-0
lines changed

5 files changed

+135
-0
lines changed

acceptance/bundle/resources/jobs/delete_task/out.plan_update.direct-exp.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,57 @@
3838
]
3939
}
4040
},
41+
"remote_state": {
42+
"creator_user_name": "[USERNAME]",
43+
"job_id": [NUMID],
44+
"settings": {
45+
"deployment": {
46+
"kind": "BUNDLE",
47+
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
48+
},
49+
"edit_mode": "UI_LOCKED",
50+
"format": "MULTI_TASK",
51+
"max_concurrent_runs": 1,
52+
"name": "Untitled",
53+
"queue": {
54+
"enabled": true
55+
},
56+
"tasks": [
57+
{
58+
"existing_cluster_id": "0717-132531-5opeqon1",
59+
"libraries": [
60+
{
61+
"whl": "/Workspace/Users/foo@bar.com/mywheel.whl"
62+
}
63+
],
64+
"python_wheel_task": {
65+
"entry_point": "run",
66+
"package_name": "whl"
67+
},
68+
"task_key": "TestTask1"
69+
},
70+
{
71+
"for_each_task": {
72+
"inputs": "[1]",
73+
"task": {
74+
"existing_cluster_id": "0717-132531-5opeqon1",
75+
"libraries": [
76+
{
77+
"whl": "/Workspace/Users/foo@bar.com/mywheel.whl"
78+
}
79+
],
80+
"python_wheel_task": {
81+
"entry_point": "run",
82+
"package_name": "whl"
83+
},
84+
"task_key": "TestTask2"
85+
}
86+
},
87+
"task_key": "TestTask2"
88+
}
89+
]
90+
}
91+
},
4192
"changes": {
4293
"local": {
4394
"tasks": {

acceptance/bundle/resources/jobs/update/out.plan_update.direct-exp.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,39 @@
3333
}
3434
}
3535
},
36+
"remote_state": {
37+
"creator_user_name": "[USERNAME]",
38+
"job_id": [JOB_ID],
39+
"settings": {
40+
"deployment": {
41+
"kind": "BUNDLE",
42+
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
43+
},
44+
"edit_mode": "UI_LOCKED",
45+
"format": "MULTI_TASK",
46+
"job_clusters": [
47+
{
48+
"job_cluster_key": "key",
49+
"new_cluster": {
50+
"num_workers": 0,
51+
"spark_version": "13.3.x-scala2.12"
52+
}
53+
}
54+
],
55+
"max_concurrent_runs": 1,
56+
"name": "foo",
57+
"queue": {
58+
"enabled": true
59+
},
60+
"trigger": {
61+
"pause_status": "UNPAUSED",
62+
"periodic": {
63+
"interval": 1,
64+
"unit": "DAYS"
65+
}
66+
}
67+
}
68+
},
3669
"changes": {
3770
"local": {
3871
"trigger.periodic.unit": {

acceptance/bundle/resources/jobs/update_single_node/out.plan_update.direct-exp.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,46 @@
4040
}
4141
}
4242
},
43+
"remote_state": {
44+
"creator_user_name": "[USERNAME]",
45+
"job_id": [JOB_ID],
46+
"settings": {
47+
"deployment": {
48+
"kind": "BUNDLE",
49+
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
50+
},
51+
"edit_mode": "UI_LOCKED",
52+
"format": "MULTI_TASK",
53+
"job_clusters": [
54+
{
55+
"job_cluster_key": "key",
56+
"new_cluster": {
57+
"custom_tags": {
58+
"ResourceClass": "SingleNode"
59+
},
60+
"num_workers": 0,
61+
"spark_conf": {
62+
"spark.databricks.cluster.profile": "singleNode",
63+
"spark.master": "local[*]"
64+
},
65+
"spark_version": "13.3.x-scala2.12"
66+
}
67+
}
68+
],
69+
"max_concurrent_runs": 1,
70+
"name": "foo",
71+
"queue": {
72+
"enabled": true
73+
},
74+
"trigger": {
75+
"pause_status": "UNPAUSED",
76+
"periodic": {
77+
"interval": 1,
78+
"unit": "DAYS"
79+
}
80+
}
81+
}
82+
},
4383
"changes": {
4484
"local": {
4585
"trigger.periodic.unit": {

acceptance/bundle/resources/volumes/change-name/out.plan.direct-exp.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@
1111
"volume_type": "MANAGED"
1212
}
1313
},
14+
"remote_state": {
15+
"catalog_name": "main",
16+
"comment": "COMMENT1",
17+
"full_name": "main.myschema.myvolume",
18+
"name": "myvolume",
19+
"schema_name": "myschema",
20+
"storage_location": "s3://deco-uc-prod-isolated-aws-us-east-1/metastore/[UUID]/volumes/[UUID]",
21+
"volume_type": "MANAGED"
22+
},
1423
"changes": {
1524
"local": {
1625
"name": {

bundle/direct/bundle_plan.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ func (b *DeploymentBundle) CalculatePlanForDeploy(ctx context.Context, client *d
178178
}
179179
}
180180

181+
// We have a choice whether to include remoteState or remoteStateComparable from below.
182+
// Including remoteState because in the near future remoteState is expected to become a superset struct of remoteStateComparable
181183
entry.RemoteState = remoteState
182184

183185
var remoteAction deployplan.ActionType

0 commit comments

Comments
 (0)