-
Is it possible to change how dbt assets are built? By default the command executed is I would like to change that so assets are built with I looked at
Relevant docs and code: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@dbt_assets(manifest=dbt_project.manifest_path)
def jaffle_shop_dbt_assets(context: AssetExecutionContext, dbt: DbtCliResource):
yield from dbt.cli(["run", "--threads", "1"], context=context).stream()
yield from dbt.cli(["test", "--threads", "8"], context=context).stream() |
Beta Was this translation helpful? Give feedback.
dbt build
is combination ofrun
,seed
andtest
. You can invoke those commands separately instead of singlebuild
and specify number of threads you want, it will overwrite number of threads defined in the dbt profiles.yml. Alternatively you can create separate profiles and pass them todbt.cli