diff --git a/python_modules/dagster/dagster/_core/definitions/decorators/asset_check_decorator.py b/python_modules/dagster/dagster/_core/definitions/decorators/asset_check_decorator.py index 3e0837265645d..933548f8c816c 100644 --- a/python_modules/dagster/dagster/_core/definitions/decorators/asset_check_decorator.py +++ b/python_modules/dagster/dagster/_core/definitions/decorators/asset_check_decorator.py @@ -365,13 +365,10 @@ def inner(fn: MultiAssetCheckFunction) -> AssetChecksDefinition: return AssetChecksDefinition.create( node_def=op_def, - resource_defs=wrap_resources_for_execution(resource_defs), - keys_by_input_name={ - input_tuple[0]: asset_key - for asset_key, input_tuple in named_ins_by_asset_key.items() - }, - check_specs_by_output_name={spec.get_python_identifier(): spec for spec in specs}, - can_subset=can_subset, + resource_defs=builder.args.op_def_resource_defs, + keys_by_input_name=builder.asset_keys_by_input_name, + check_specs_by_output_name=builder.check_specs_by_output_name, + can_subset=builder.args.can_subset, ) return inner