Hey folks! How are you accessing Asset Metadata in...
# ask-community
s
Hey folks! How are you accessing Asset Metadata in your Custom IO?
c
Hi Sean. If you're referring to fetching runtime metadata that has that is persisted via
handle_output
, you currently cannot fetch it within the
handle_output
call. You can however query the instance for past asset materializations that have already occurred. We have an issue documenting this: https://github.com/dagster-io/dagster/discussions/6913
a
Hi, I am trying to achieve a similar thing... I have a custom I/O manager and in my
load_input
I can perfectly access the metadata of an asset like this
context.upstream_output.metadata.get
however when inside the
handle_output
I try to access that very same information... I am struggling to find out the solution. I have read already several threads and it is a bit confusing. Could someone please bring some light here on how to achieve it?