https://dagster.io/ logo
#integration-dbt
Title
# integration-dbt
d

Dennis Gera

02/16/2024, 7:59 PM
Hi team, does anyone know how to configure a
sensor
to be triggered every time any
dbt asset job
was run successfully?
Here's an example of two dbt asset jobs:
Copy code
antifraud_assets_job = create_dbt_asset_job(
    name="materialize_antifraud_assets", dbt_assets=[arado_dbt_assets], dbt_select="tag:antifraud"
)

common_assets_job = create_dbt_asset_job(
    name="common_assets_job",
    dbt_assets=[arado_dbt_assets],
    dbt_select="+tag:common",
    dbt_exclude="tag:static tag:staging,tag:brain config.materialized:snapshot",
)
I want a sensor to look at every time an asset from arado_dbt_assets was run successfully
it's technically not triggering on the job running, that would trigger on all (or any) of the assets having a materialization event
4 Views