Rasmus Bonnevie
05/10/2023, 8:42 AMimport external_asset from other_asset_module
@asset(ins={"input": AssetIn(key=external_asset.key))
def new_asset(input):
...
my only problem is that this interacts very poorly with the current load_assets_from_modules
utilities you recommend since it will collect external_asset
as well! This can become particularly confusing if group_name
or a prefix is applied in the load_*
function. Any recommendations or ways to support this style?Daniel Gafni
05/10/2023, 9:02 AMRasmus Bonnevie
05/10/2023, 9:04 AMload_assets_from_modules
I thinkDaniel Gafni
05/10/2023, 9:05 AMRasmus Bonnevie
05/10/2023, 9:09 AMload_assets_from_modules
on the module containing the above code, it retrieves new_asset
but not external_asset
(since I might need to apply a different group name/prefix to the latter).
I believe it's recommended in the docs to use the load_*
functions to populate Definitions
and set group names on a module level.Definitions
module
•Daniel Gafni
05/10/2023, 9:11 AM