Is there anyway to access the current run_id from ...
# ask-community
j
Is there anyway to access the current run_id from the InputContext in the IO manager? If I have 3 assets that will be written within the same "Materialization run" I have a need to identify if they are within the same group.
The OutputContext has a runid and I assume that both if you both write and read an asset that would be bound via the same run_id but no such property on input context
Okay think I might have found it, for inputcontext you need to use the get_identifier() method where the first property might be run_id according to documentation, for the outputcontext run_id is a property
c
input_context.upstream_output.run_id