-
Also in stackoverflow. For this question, consider I have a repository with one asset: @asset
def my_int():
return 1
@repository
def my_repo():
return [my_int] I want to execute it in process (with mem_io_manager), but I would like to retrieve the value returned by my_int from memory later. I can do that with fs_io_manager, for example, using Ideally, I would execute it in process and tell the executor to return me one (or more) of the assets, something like: my_assets = my_repo.get_job('__ASSET_JOB').execute_in_process(return_assets=[my_int, ...]) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
you can do this with materialize_to_memory: my_materialize_asset = materialize_to_memory([asset]).output_for_node(asset.node_def.name) |
Beta Was this translation helpful? Give feedback.
you can do this with materialize_to_memory: