Hi everyone,
is it possible to construct dagster assets programatically? E.g. something like
for name in ["Germany", "US"]:
@asset
def name():
return name
@repository
def dagster_ops():
return ["Germany", "US"]
r
Rasmus Bonnevie
01/18/2023, 4:31 PM
You can construct the assets in a loop or with a function, but you need to the parameters of
asset
to make sure they get different asset keys and to control inputs if any.