# dagster-feedback

li liang

08/04/2022, 1:31 PM
I try to transform some additional information, such as database's schema and table name, from asset to io_manager, this is my code:
Copy code
from dagster import IOManager, io_manager

class MyIOManager(IOManager):
    def handle_output(self, context, str):
    def load_input(self, context):

def my_io_manager(init_context):
    return MyIOManager()

def asset1(context):
    return Output('this is mine', metadata={'label': 'mylabel'})
but the log show context's metadata in handle_output is empty. What's worry with these code? Is this a right way to transform additional information from asset to io_manager?


08/04/2022, 4:05 PM
hi @li liang - is the metadata not known until runtime? if you know it ahead of time, you can include it in the arguments to the decorator:
Copy code
@asset(io_manager_key='my_io_manager', metadata={...})
def asset1(context):
here's the issue where we're tracking the ability to access dynamic metadata: btw, in the future, the #dagster-support channel would be a better place for this kind of question

li liang

08/05/2022, 12:22 AM
Thanks very much, the metadata is known ahead of time, I will try add them in '@asset'.