https://prefect.io logo
Title
s

Suresh R

01/19/2022, 6:41 PM
Hi, I am running a flow in cloud which has two paralell task but only one task is running at a time, What might be the reason?
k

Kevin Kho

01/19/2022, 6:41 PM
Are they both mapped?
s

Suresh R

01/19/2022, 6:45 PM
No
a

Anna Geller

01/19/2022, 6:45 PM
usually it’s the executor. The default LocalExecutor is running your tasks sequentially, but if you switch to a LocalDaskExecutor, your tasks can run in parallel
s

Suresh R

01/19/2022, 6:45 PM
I am using Kubernetes agent, how i can configure that
k

Kevin Kho

01/19/2022, 6:46 PM
On the flow:
flow.executor = LocalDaskExecutor()
from prefect.executors import LocalDaskExecutor
s

Suresh R

01/19/2022, 6:46 PM
Got it Thank you