Skip to content

Commit 273392c

Browse files
authored
Added new experimental field (#2147)
1 parent 37f446b commit 273392c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

jobs/resource_job.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ type ContinuousConf struct {
185185
PauseStatus string `json:"pause_status,omitempty" tf:"computed"`
186186
}
187187

188+
type Queue struct {
189+
}
190+
188191
// JobSettings contains the information for configuring a job on databricks
189192
type JobSettings struct {
190193
Name string `json:"name,omitempty" tf:"default:Untitled"`
@@ -222,6 +225,7 @@ type JobSettings struct {
222225
EmailNotifications *EmailNotifications `json:"email_notifications,omitempty" tf:"suppress_diff"`
223226
WebhookNotifications *WebhookNotifications `json:"webhook_notifications,omitempty" tf:"suppress_diff"`
224227
Tags map[string]string `json:"tags,omitempty"`
228+
Queue *Queue `json:"queue,omitempty"`
225229
}
226230

227231
func (js *JobSettings) isMultiTask() bool {

jobs/resource_job_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ func TestResourceJobCreate(t *testing.T) {
4545
MinRetryIntervalMillis: 5000,
4646
RetryOnTimeout: true,
4747
MaxConcurrentRuns: 1,
48+
Queue: &Queue{},
4849
},
4950
Response: Job{
5051
JobID: 789,
@@ -78,6 +79,7 @@ func TestResourceJobCreate(t *testing.T) {
7879
TimezoneID: "America/Los_Angeles",
7980
PauseStatus: "PAUSED",
8081
},
82+
Queue: &Queue{},
8183
},
8284
},
8385
},
@@ -103,7 +105,8 @@ func TestResourceJobCreate(t *testing.T) {
103105
}
104106
library {
105107
jar = "dbfs://ff/gg/hh.jar"
106-
}`,
108+
}
109+
queue {}`,
107110
}.Apply(t)
108111
assert.NoError(t, err)
109112
assert.Equal(t, "789", d.Id())

0 commit comments

Comments
 (0)