Hi, I cannot access group_name from IOManager. An...
# ask-community
s
Hi, I cannot access group_name from IOManager. Any idea how ?
c
Hi Sacha. A bit roundabout, but you could do this:
Copy code
class MyIOManager(IOManager):
    def handle_output(self, context, obj):
        assets_def = context.step_context.job_def.asset_layer.assets_def_for_asset(
            context.asset_key
        )
        group_names_by_key = assets_def.group_names_by_key
        ...

    def load_input(self, context):
        ...
🙌 1