https://dagster.io/ logo
#ask-community
Title
# ask-community
j

Jordan

08/24/2022, 10:34 AM
Hi ! I tested this code. Is it normal that the interface displays the
resource
foo in the
job_2
or is it a bug?
Copy code
@asset(required_resource_keys={'foo'})
def asset_1():
    return 1
@asset()
def asset_2():
    return 1

job_1 = define_asset_job('job_1', description= 'job_1', selection=AssetSelection.assets(asset_1))
job_2 = define_asset_job('job_2', description= 'job_2', selection=AssetSelection.assets(asset_2))

@resource
def my_resource():
    return 'foo'

@repository()
def test():
    return [job_1, job_2, with_resources([asset_1], resource_defs={'foo' : my_resource}), asset_2]
c

chris

08/24/2022, 8:36 PM
Hey Jordan - was able to repro - definitely not intended. Thanks for the catch!
2 Views