Skip to content

Commit

Permalink
add ability to specify tags for jobs (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexott authored May 26, 2022
1 parent 0647db0 commit 91b14e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Version changelog

## 0.5.9

* Add ability to specify tags for jobs ([#1337](https://github.com/databrickslabs/terraform-provider-databricks/pull/1337))

## 0.5.8

* Update `aws_iam_policy_document` in `databricks_mws_customer_managed_keys` docs to restrict KMS policy to caller AWS account ([#1309](https://github.com/databrickslabs/terraform-provider-databricks/pull/1309)).
Expand Down
1 change: 1 addition & 0 deletions docs/resources/job.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ The following arguments are required:
* `max_concurrent_runs` - (Optional) (Integer) An optional maximum allowed number of concurrent runs of the job. Defaults to *1*.
* `email_notifications` - (Optional) (List) An optional set of email addresses notified when runs of this job begin and complete and when this job is deleted. The default behavior is to not send any emails. This field is a block and is documented below.
* `schedule` - (Optional) (List) An optional periodic schedule for this job. The default behavior is that the job runs when triggered by clicking Run Now in the Jobs UI or sending an API request to runNow. This field is a block and is documented below.
* `tags` - (Optional) (Map) An optional map of the tags associated with the job. Specified tags will be used as cluster tags for job clusters.

### job_cluster Configuration Block
[Shared job cluster](https://docs.databricks.com/jobs.html#use-shared-job-clusters) specification. Allows multiple tasks in the same job run to reuse the cluster.
Expand Down
1 change: 1 addition & 0 deletions jobs/resource_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ type JobSettings struct {
Schedule *CronSchedule `json:"schedule,omitempty"`
MaxConcurrentRuns int32 `json:"max_concurrent_runs,omitempty"`
EmailNotifications *EmailNotifications `json:"email_notifications,omitempty" tf:"suppress_diff"`
Tags map[string]string `json:"tags,omitempty"`
}

func (js *JobSettings) isMultiTask() bool {
Expand Down

0 comments on commit 91b14e5

Please sign in to comment.