Hi everyone,
I’m building a multi-agent application using CrewAI with a hierarchical process setup — a Manager agent coordinating 5 sub-agents.
When running in synchronous mode, everything works perfectly. The manager executes tasks sequentially (task 1, task 2, etc.), and the entire process completes in about 1 minute.
However, when I switch to async_execution = True
, I expected the performance to improve or at least stay the same. Instead, the execution slows down drastically — it’s been running for over 20 minutes without completing.
My understanding was that setting async_execution = True
should enable parallel execution of sub-agent tasks, leading to faster overall completion time (roughly 1/5 the time, since I have 5 sub-agents).
Is there something I’m missing in how async execution works in hierarchical mode?
Could this be a bug, or are there best practices or configuration tweaks to ensure async execution behaves efficiently?
Any help or pointers would be greatly appreciated!
Thanks