hi
@Jean Gonzalez! for your first question, currently, there is no explicit event for failed asset materializations. In the UI, an asset gets the "Failed" status when both:
• the most recent run for that asset has failed
• the most recent run for that asset did not materialize the asset
In general, you can access this information off of the AssetRecord object for that key (using
instance.get_asset_records). The
asset_entry on the AssetRecord will have the last run id, as well as the last materialization record, so you can use
instance.get_run_by_id to check the status of that run, and if it failed, then check to see if the latest materialization record for that asset was in that run (meaning it got materialized before the run failed)