Asif Imran
04/24/2023, 8:00 PMchris
04/24/2023, 10:23 PMAsif Imran
04/24/2023, 10:31 PMchris
04/24/2023, 11:09 PMAsif Imran
04/24/2023, 11:11 PMchris
04/24/2023, 11:19 PMcontext.instance.get_latest_materialization_event
will give you the last materialization of your asset - if you don’t anticipate needing / wanting to fill in blanks beyond the previous day, that could be used to pinpoint whether that partition needs to be run. Otherwise you could fall back to using context.instance.get_event_records
, with a filter to just retrieve asset materialization events - and launch off runs for any files which do not have a partition attached for them yet.Asif Imran
04/24/2023, 11:20 PMchris
04/24/2023, 11:20 PM