Hi everyone! I am trying to execute a flow on two different docker containers with different number of CPU cores. Is it possible to dynamically set
num_workers
for LocalDaskExecutor based on the number of cores available on the container?
k
Kevin Kho
05/02/2022, 7:09 PM
Are you using a task to start the Docker container? Or are you using subflows with
DockerRun
?
p
Poosh Adhikary
05/02/2022, 7:12 PM
I am using
DockerRun
.
k
Kevin Kho
05/02/2022, 7:12 PM
Oh I get what you are saying now. You have one flow but you have two execution environments with different resources. What happens though if you leave it blank?
LocalDaskExecutor()
should infer the number of cores
p
Poosh Adhikary
05/02/2022, 7:14 PM
I do not want to use all the cores. Instead, I was hoping to do something like
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.