Josh
02/11/2022, 3:07 PMKevin Kho
os.environ
if it’s not in context in some way?Josh
02/11/2022, 5:38 PMdef change_name(flow, old_state, new_state):
import os
return os.getenv("ENV VALUE")
Kevin Kho
--env
flag on the agent to propagate it because of stuff like Docker/Kubernetes/ECS where the agent is not the execution environmentJosh
02/11/2022, 6:43 PM--env
flag when creating the agent. My question is whether that method called by the state handler will get the env value from the agent starting the flow executing?Kevin Kho
--env
flag on the agent, then I believe the Flow will be able to pull it from the Flow env because the agent sent it over when it started the flow process. Does that make sense?Josh
02/11/2022, 6:50 PM--env
flag will get the environment variable set up on the agent and passed to the flow. I’m asking how to access that environment variable in the state handler method dynamically while the flow is running. Whether os.env
will work within the state handler method to get the flow’s env values?Kevin Kho