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