Miguel Caballero Pinto
06/16/2023, 2:06 PMcontext.instance.get_latest_materialization_event
but I couldn’t figure out how check that the event is that a materialization is running. Thanks!Miguel Caballero Pinto
06/16/2023, 6:09 PMowen
06/16/2023, 9:27 PMMiguel Caballero Pinto
07/24/2023, 9:48 AMMiguel Caballero Pinto
07/27/2023, 11:38 AMowen
07/27/2023, 8:52 PMlast_run_id
field, which will tell you the latest run that asset has been a part of
3. check the last_materialization_record
field on the asset record. this record will have a run_id field in it. if the last materialization record has the same run_id as the last_run_id, then this asset has been materialized as part of that run (so it's not in progress).
4. if it has a different run_id from last_run_id
, then this means either that run is still in progress, or it failed. to tell the difference between these two cases you can check the status of the run