From b0c2b15a3e280bdd650ff9a09e23cc92c6b23cf3 Mon Sep 17 00:00:00 2001 From: Lorenze Jay Date: Tue, 16 Jul 2024 13:07:31 -0700 Subject: [PATCH] better code spacing --- src/crewai/crew.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/crewai/crew.py b/src/crewai/crew.py index f2459464c..94801486d 100644 --- a/src/crewai/crew.py +++ b/src/crewai/crew.py @@ -647,6 +647,7 @@ class Crew(BaseModel): f"No agent available for task: {task.description}. Ensure that either the task has an assigned agent or a manager agent is provided." ) self._log_task_start(task, agent_to_use) + if isinstance(task, ConditionalTask): if futures: task_outputs.extend( @@ -676,6 +677,7 @@ class Crew(BaseModel): task_index, ) continue + if task.async_execution: context = self._get_context( task, [last_sync_output] if last_sync_output else []