prefect icon indicating copy to clipboard operation
prefect copied to clipboard

Asset support for prefect-dbt run_dbt_cloud_job

Open robfreedy opened this issue 3 weeks ago • 0 comments

Describe the current behavior

Currently, automatic asset generation for dbt nodes is only supported in prefect-dbt for dbt Core projects (see docs here. Asset generation for dbt Cloud jobs has to be done by manually adding the materialize decorator

Describe the proposed behavior

Utilizing the dbt Mesh patterns/features, automatically materialize dbt Cloud jobs as Prefect Assets.

Example Use


result = await run_dbt_cloud_job(
        dbt_cloud_job = await DbtCloudJob.load("JOB-BLOCK-NAME-PLACEHOLDER"),
        targeted_retries = 0,
       create_assets=True
    )

### Additional context

_No response_

robfreedy avatar Dec 03 '25 15:12 robfreedy