Daniel Daum
12/20/2022, 4:52 PM@asset
def asset1():
return [1, 2, 3]
@asset
def asset2(asset1):
return asset1 + [4]
all_assets_job = define_asset_job(name="all_assets_job")
asset1_job = define_asset_job(name="asset1_job", selection="asset1")
defs = Definitions(
assets=[asset1, asset2],
jobs=[all_assets_job, asset1_job]
I stole the code snippet from the "how to create jobs from software defined assets section of the docs"
https://docs.dagster.io/concepts/ops-jobs-graphs/jobs#from-software-defined-assets
Am I doing something incorrect with the new API?sean
12/20/2022, 8:45 PMDaniel Daum
12/20/2022, 8:46 PMsean
12/21/2022, 9:42 PM