Hello, Is there a way to retrieve asset-specific a...
# ask-community
r
Hello, Is there a way to retrieve asset-specific attributes (metadata ?) from an IO Manager ? For a given time-based asset, I need to retrieve the name of the time attribute/field if I want to read/write it from/to the storing system (potentially a database). Is there a way to use a generaic IO Manager that would be able to retrieve the time field from an attribute of the asset (metadata maybe?) or would it be more recommended to create a new instance of the IO Manager per asset having the specific time field as attribute ? Let me know if my query is unclear
j
in the
handle_output
and
load_input
methods of the I/O manager, there is a
context
argument that is provided by dagster. This context will have information like the asset name and metadata attached to it