Jan Hajny
04/11/2023, 7:10 AMpartition_def
and has the previous asset referenced in non_argument_deps
so that these two steps are linked together in the graph. So far so good, the two assets appear connected in the UI and I can materialize the first one successfully. The problem is how to deal with the second step. I'm okay with using the default fs_io_manager
for the second asset's output but I'm not sure how to actually perform the copy operation. I tried to read the file content (one at a time as the second asset works with partitions being individual file paths) as binary using io.BytesIO
and returning the buffer. That seems to materialize the asset successfully but I can't find the saved file anywhere. Also, I'm not sure how to load these local files later on in another asset. Ideally, I'd like the second asset to materialize all the partitions and then start a task for the third asset that would get paths to all the local files as an input.
Is my approach so far reasonable? Is there any recommended way how to do this?
Thank you in advance for any advice!claire
04/11/2023, 11:54 PMJan Hajny
04/12/2023, 4:31 AM