Hi. Question about `ShellTask`. I am running a flo...
# prefect-community
p
Hi. Question about
ShellTask
. I am running a flow using the docker agent and I am passing some env vars to the agent with the
-e var=value
option. I suppose these variables available to the shell task. Am I correct? or do I need to pass read them from the environment and pass them explicitly to the task?
k
Hey @Pedro Machado, Yes this should be the case - a ShellTask should read the environment variables you’ve assigned through the Agent, however it’ll only pick up the
env_vars
if the flow is picked up by that particular Agent.