Olle Hammarström
06/28/2023, 9:53 AM--full-refresh
) to any arbitrary selection of models, all of which are loaded as software defined assets using the @dbt_assets
decorator.
What’s the recommended way of accomplishing this? I can set up a custom op with a config that accepts the flags, but if I understand correctly then that won’t be connecting the assets with the execution, so the asset metadata won’t update - is that right?rex
06/28/2023, 12:32 PM@dbt_assets
if you use pythonic configuration: https://docs.dagster.io/concepts/configuration/config-schemaOlle Hammarström
06/28/2023, 2:03 PMdbt_assets
decorated function as an argument, turns out I didn’t have to go down the route of configuring the resource itself
Thanks!Julien DEBLANDER
07/26/2023, 8:49 PM@dbt_assets(manifest=manifest, select="*")
def general_dbt_assets(context: OpExecutionContext, dbt: DbtCli, config: DbtConfig):
vars = {"tags": config.tags}
yield from dbt.cli(
args=["build", "--vars", json.dumps(vars)], manifest=manifest, context=context
).stream()
Thanksrex
07/26/2023, 9:29 PMJulien DEBLANDER
07/26/2023, 9:58 PMrex
07/26/2023, 10:12 PMowen
07/27/2023, 4:23 PMJulien DEBLANDER
07/27/2023, 5:10 PM