Skip to content

Commit

Permalink
Refactor: Remove redundant task creation in kickoff_for_each_async
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioPolito24 committed Sep 15, 2024
1 parent 322780a commit 30aac02
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/crewai/crew.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,6 @@ async def run_crew(crew, input_data):
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)

Expand Down

0 comments on commit 30aac02

Please sign in to comment.