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

Barry Sun

06/17/2022, 12:54 AM
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

sandy

06/17/2022, 2:27 PM
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

Barry Sun

06/19/2022, 10:55 PM
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?