Skip to content

Call dbt_constraints.create_constraints() via run-operation? #80

@squashed94

Description

@squashed94

Our airflow/cosmos implementation does a dbt invocation for each model in the DAG rather than a single invocation for all models. Not ideal but it's currently what we have...

Calling dbt_constraints.create_constraints() via an on-run-hook will cause an error for yet to be processed models that don't exist in the db (snowflake) - which will typically present during the first run of a code deployment.

Can run-operation be used to overcome this?

Thanks

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions