Skip to content

Commit 6cf4af2

Browse files
authored
Fixed databricks_job resource file arrival trigger parameter name (#2438)
The name of the parameter was incorrect because of the documentation problem, and wasn't rejected by the API as incorrect. this fixes #2434
1 parent 1e56f0c commit 6cf4af2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/resources/job.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ resource "databricks_job" "this" {
147147
* `pause_status` - (Optional) Indicate whether this trigger is paused or not. Either `PAUSED` or `UNPAUSED`. When the `pause_status` field is omitted in the block, the server will default to using `UNPAUSED` as a value for `pause_status`.
148148
* `file_arrival` - (Required) configuration block to define a trigger for [File Arrival events](https://learn.microsoft.com/en-us/azure/databricks/workflows/jobs/file-arrival-triggers) consisting of following attributes:
149149
* `url` - (Required) string with URL under the Unity Catalog external location that will be monitored for new files. Please note that have a trailing slash character (`/`).
150-
* `min_time_between_trigger_seconds` - (Optional) If set, the trigger starts a run only after the specified amount of time passed since the last time the trigger fired. The minimum allowed value is 60 seconds.
150+
* `min_time_between_triggers_seconds` - (Optional) If set, the trigger starts a run only after the specified amount of time passed since the last time the trigger fired. The minimum allowed value is 60 seconds.
151151
* `wait_after_last_change_seconds` - (Optional) If set, the trigger starts a run only after no file activity has occurred for the specified amount of time. This makes it possible to wait for a batch of incoming files to arrive before triggering a run. The minimum allowed value is 60 seconds.
152152

153153
### git_source Configuration Block

jobs/resource_job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ type JobRunAs struct {
207207

208208
type FileArrival struct {
209209
URL string `json:"url"`
210-
MinTimeBetweenTriggersSeconds int32 `json:"min_time_between_trigger_seconds,omitempty"`
210+
MinTimeBetweenTriggersSeconds int32 `json:"min_time_between_triggers_seconds,omitempty"`
211211
WaitAfterLastChangeSeconds int32 `json:"wait_after_last_change_seconds,omitempty"`
212212
}
213213

0 commit comments

Comments
 (0)