Hello Hope that you are well. I have a parent ta...
# prefect-server
Hello Hope that you are well. I have a parent task I have created and I am able to create a create a series of task runs based on the inputs according to this documentation: https://docs.prefect.io/core/idioms/task-run-names.html. How can I ensure that the children tasks that are created from this are able to run in parallel instead of sequentially? Do I need to set the flow's executor to be the LocalDaskExecutor? Thanks for your help,
Hi @Aniruddha Sengupta, yes exactly you need to use the LocalDaskExecutor for parallelization
Hi Kevin Thanks for your reply. Just to clarify, I have a task called
which takes a
input. When the Flow is then created, it is mapped to a list of languages which creates a series of children tasks based on the language. When I set the Flow's executor like so:
flow.executor = LocalDaskExecutor()
, this will ensure that the children tasks will be executed in parallel? Thanks, Aniruddha
If they are independent, yes
Ok, thanks so much for your help Kevin.
Of course!
❤️ 1