Justin Chavez
04/14/2021, 8:12 PMrun_command
, and inside it is launching the command on a RunNamespacedJob
to use Kubernetes. I have multiple commands that take a while to complete so I would like multiple Namespaced Jobs to run at the same time, I tried using a mapping like:
with Flow as flow:
run_command.map([cmd1, cmd2,...])
But Prefect is running each Namespaced Job in serial. Would switching to a Dask executor be the key? Or could I adjust the map function to achieve parallelization?Kevin Kho
DaskExecutor
or DaskLocalExecutor
to achieve parallelism.Justin Chavez
04/14/2021, 10:41 PMRanu Goldan
04/15/2021, 8:50 AMKevin Kho
Ranu Goldan
04/16/2021, 8:04 AM