Help us shape the future of Go! Take the 2026 Go Developer Survey

job_validators

package
v1.12.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CostOptimizationFeatureStateAwareOrchestration = "state_aware_orchestration"
	CostOptimizationFeatureDbtState                = "dbt_state"
)

Valid cost_optimization_features values. The dbt Cloud API enum (sinter/common/constants/jobs.py::CostOptimizationFeature) also defines efficient_testing, but it is intentionally not exposed by the provider.

Variables

This section is empty.

Functions

func CostOptimizationFeaturesValidator added in v1.12.1

func CostOptimizationFeaturesValidator() validator.Set

CostOptimizationFeaturesValidator returns a validator that ensures cost_optimization_features only contains supported values and that dbt_state, when present, is the only feature in the set.

func ForceNodeSelectionValidator

func ForceNodeSelectionValidator() validator.Bool

ForceNodeSelectionValidator returns a validator that ensures force_node_selection is true when dbt_version is not a Fusion release track.

Types

type UseUnknownWhenCostOptimizationFeaturesChange added in v1.12.9

type UseUnknownWhenCostOptimizationFeaturesChange struct{}

UseUnknownWhenCostOptimizationFeaturesChange is a plan modifier for force_node_selection. The dbt platform API keeps the two fields consistent and gives cost_optimization_features precedence, so adding a feature to a job that had none rewrites force_node_selection to false. Holding the old value in the plan makes that apply fail with "Provider produced inconsistent result after apply", so the value is unknown whenever the feature set changes.

When the feature set is stable, the value in state is kept, which is what UseStateForUnknown did before, so a plan with no change to the features still settles. A value the configuration sets is never touched.

func (UseUnknownWhenCostOptimizationFeaturesChange) Description added in v1.12.9

func (UseUnknownWhenCostOptimizationFeaturesChange) MarkdownDescription added in v1.12.9

func (UseUnknownWhenCostOptimizationFeaturesChange) PlanModifyBool added in v1.12.9

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL