Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
Refactor: Remove redundant task creation in kickoff_for_each_async (#1326)
FabioPolito24d4c0a4248cbd
diff --git a/src/crewai/crew.py b/src/crewai/crew.pyindex 3ab33833d..2109b1262 100644--- a/src/crewai/crew.py+++ b/src/crewai/crew.py@@ -513,10 +513,6 @@ class Crew(BaseModel):asyncio.create_task(run_crew(crew_copies[i], inputs[i]))for i in range(len(inputs))]- tasks = [- asyncio.create_task(run_crew(crew_copies[i], inputs[i]))- for i in range(len(inputs))- ]results = await asyncio.gather(*tasks)