Hi everyone, I'm using Prefect 1.4.1, and for the ...
# ask-community
b
Hi everyone, I'm using Prefect 1.4.1, and for the past few days, I've been attempting to run a flow from inside another flow using the
create_flow_run
Prefect task. That part is working as it should. However, the problem I'm facing is that I can't find a way to access the run configurations of the first flow—more precisely, the environment variables of the run configurations. I need the environment variables of the run configurations so that I can use them and pass them to the
create_flow_run
function. This way, the second flow will have the same environment as the first one. I've tried using
load_dotenv()
that loads the environment to
os.environ
, and that worked for me locally. However, when using it on the server, it just loaded everything from the
.env
file and not from the current environment used in the flow for run configurations. Has anyone encountered this problem before?