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

Jakub Zgrzebnicki

01/18/2023, 11:22 AM
hi I have asset defined from graph and wanted to use:
Copy code
from dagster import asset, AssetIn

@asset(ins={"stuff": AssetIn(metadata={"allow_missing_partitions": True})})
def use_stuff(context, stuff):
  stuff.keys()
but can't find place to use it in
AssetsDefinition.from_graph
function. Anyone have similar problem. Is it even possible for asset from graph?
What I found is that I can define metadata in op definition and it works
c

chris

01/18/2023, 6:59 PM
Do you mean you want to define a dependency to / from
use_stuff
from the graph-backed asset?
If so, check out the `keys_by_input_name`/`keys_by_output_name` parameters
j

Jakub Zgrzebnicki

01/19/2023, 5:40 AM
I wanted to pass {"allow_missing_partitions": True} metadata to input context to be used by io manager in
keys_by_input_name
I can only specify AssetKey not AssetIn where I can pass metadata