Is it possible to read the metadata when handling ...
# ask-community
m
Is it possible to read the metadata when handling input in an I/O manager? In the
handle_output
method, I have attached some metadata
Copy code
context.add_output_metadata(
            {"delivery_date": obj.date.isoformat(timespec="milliseconds")}
        )
then I tried to read this key in the
load_input
method
Copy code
context.upstream_output.metadata["delivery_date"]
but the key doesn't exist. Is there a way to do this?
I should add that this is handling
op
I/O.
j
hey @moritz we have an issue open for this here https://github.com/dagster-io/dagster/issues/9076
m
Thank you for the link to the issue. I'm trying to retrieve the data from an
InputContext
which seems to be a scenario not covered by the issue?
j
yeah you’re case is more covered by this issue, but it’s likely all the same base cause so it was marked as a duplicate https://github.com/dagster-io/dagster/issues/12873
m
I see, thanks ☺️