Hi all, I'm getting to grips with `context` and pa...
# ask-community
b
Hi all, I'm getting to grips with
context
and particularly how
context.name
is captured. I'm using SDA's, and say I have an asset defined as below. I would like the value of
context.name
in this case to be 'dummy', but what I'm seeing is 'result'. How do I get the
context.name
to be 'dummy'?
s
Hey Barry - is this from an IO manager? You can get it from
context.asset_key.path[-1]
. (We should probably make this more straightforward)
1
b
Nice! Fair enough, asset_key should've been my second guess 😅. Just wondering, how is context.name defined? Is it an internally defined name used by Dagster?