Hello everyone, it's possible to execute multiple ...
# ask-community
i
Hello everyone, it's possible to execute multiple flows where each one uses a specified virtualenv (I'm using conda by the way)? For example, let's suppose that I have two envs with different libraries in each one, one in Python 3.6 (env_1) and another in Python 3.8 (env_2), and I want to run two Flows, one using the env_1 and another the env_2. I know that a possible approach would be using a containerized application, but since I do some file/folder manipulation on the host, I think that would be tricky to do with docker (please correct if I'm wrong). Obs: I'm using the Prefect Cloud
d
I can think of two solutions. 1. Start different agent with different conda env. In this case I expect the flow they will run should take the same context. Expecting you are using local runner 2. Using container on which you mount the host local volume you need to update. 3. Just container with online storage like S3.
k
^ This is right. You can just start another local agent with a different conda env. You just need to make sure the appropriate labels are attached so that the flows get picked up by the right agent.
i
Thank you @Kevin Kho and @davzucky! I will review the solution that suits best for me.