Aaron T
06/29/2023, 7:50 PMsean
06/29/2023, 8:37 PMyield AssetMaterialization(...)
. This will generate an AssetMaterialization
event, and you can put whatever you want in the metadata (like a path to where the offset is stored, or perhaps the value itself). However, you will have to handle the actual persistence of the value yourself (unless you encode it directly in the materialization metadata).
But you might not even want to represent this value as an asset-- dagster doesn’t need to know about it, you could just read/write it from some path you either hardcode or pass in via config.