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

moritz

03/23/2023, 3:12 PM
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

jamie

03/23/2023, 7:09 PM
hey @moritz we have an issue open for this here https://github.com/dagster-io/dagster/issues/9076
m

moritz

03/23/2023, 7:48 PM
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

jamie

03/23/2023, 7:50 PM
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

moritz

03/23/2023, 7:53 PM
I see, thanks ☺️
10 Views