Skip to content

Get failed asset from dagster run with @run_status_sensor/@run_failure_sensor #24529

Answered by OwenKephart
ssillaots-boku asked this question in Q&A
Discussion options

You must be logged in to vote

At the moment, there is unfortunately no general way to detect the specific asset within a multi-asset that caused the failure (as with @dbt_assets). When the step fails, that simply marks all assets that did not get materialized as failed. No information about the specific dbt model that caused the failure is extracted from the command. For dbt specifically, the best option here would likely involve manually emitting some sort of specific log (e.g. an AssetObservation) during that step in the case of failure that would let you detect the specific dbt key that caused the failure.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@OwenKephart
Comment options

Answer selected by garethbrickman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: sensor Related to Sensors area: alerts Related to Alerts
2 participants