From 54db22e80662442922a5f311597149b4f124ddfc Mon Sep 17 00:00:00 2001 From: Benoit Perigaud <8754100+b-per@users.noreply.github.com> Date: Tue, 28 May 2024 14:03:23 +0200 Subject: [PATCH] Update description for dbtcloud_job --- docs/resources/job.md | 2 +- pkg/sdkv2/resources/job.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/resources/job.md b/docs/resources/job.md index cfd5df6e..4a5119e4 100644 --- a/docs/resources/job.md +++ b/docs/resources/job.md @@ -119,7 +119,7 @@ resource "dbtcloud_job" "downstream_job" { - `deferring_job_id` (Number) Job identifier that this job defers to (legacy deferring approach) - `description` (String) Description for the job - `generate_docs` (Boolean) Flag for whether the job should generate documentation -- `is_active` (Boolean) Flag for whether the job is marked active or deleted. To create/keep a job in a 'deactivated' state, check the `triggers` config. +- `is_active` (Boolean) Should always be set to true as setting it to false is the same as creating a job in a deleted state. To create/keep a job in a 'deactivated' state, check the `triggers` config. - `job_completion_trigger_condition` (Block Set, Max: 1) Which other job should trigger this job when it finishes, and on which conditions (sometimes referred as 'job chaining'). (see [below for nested schema](#nestedblock--job_completion_trigger_condition)) - `num_threads` (Number) Number of threads to use in the job - `run_generate_sources` (Boolean) Flag for whether the job should add a `dbt source freshness` step to the job. The difference between manually adding a step with `dbt source freshness` in the job steps or using this flag is that with this flag, a failed freshness will still allow the following steps to run. diff --git a/pkg/sdkv2/resources/job.go b/pkg/sdkv2/resources/job.go index c005c755..c2c2da83 100644 --- a/pkg/sdkv2/resources/job.go +++ b/pkg/sdkv2/resources/job.go @@ -65,7 +65,7 @@ var jobSchema = map[string]*schema.Schema{ Type: schema.TypeBool, Optional: true, Default: true, - Description: "Flag for whether the job is marked active or deleted. To create/keep a job in a 'deactivated' state, check the `triggers` config.", + Description: "Should always be set to true as setting it to false is the same as creating a job in a deleted state. To create/keep a job in a 'deactivated' state, check the `triggers` config.", }, "triggers": &schema.Schema{ Type: schema.TypeMap,