with pythonic resource definitions is it still pos...
# ask-community
z
with pythonic resource definitions is it still possible for resources to access contextual information like the
run_id
during initialization?
c
you could do it by wrapping an old-style resource definition, but I think in general we’re moving away from that (in large part due to the fact that there are many places resources are used outside of a run context now)
z
Sure that makes sense. It seems in most places that I'm accessing
run_id
during initialization I could refactor to take it in at runtime instead
c
awesome - glad that works. For cases it doesn’t, if that comes up, would be interesting to hear the situation