Chang Hai Bin
01/13/2023, 10:09 AMfrom dagster import asset
@asset
def asset1():
return 100
and another job-file
from dagster import job
from asset_file import asset1
@job
def sample_job():
q = asset1()
Running the "sample_job" fails to materialize an entry in the Asset-page on dagster UIfrom dagster import job, asset
@asset
def asset1():
return 100
@job
def sample_job():
q = asset1()
then asset1 disappears from the Asset-page on dagster-UI. It is because if we include both in the same file, then asset1 is treated like an "op", and hence not shown on the Asset page?owen
01/13/2023, 5:53 PMasset1
, you would do that with
from dagster import assset, define_asset_job, AssetSelection
@asset
def asset1():
return 100
define_asset_job("my_job", selection=AssetSelection.assets(asset1))