mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
ordering tasks properly
This commit is contained in:
@@ -45,7 +45,7 @@ def CrewBase(cls: T) -> T:
|
||||
]
|
||||
tasks = [
|
||||
getattr(self, name)()
|
||||
for name, func in self._get_all_functions().items()
|
||||
for name, func in reversed(self._get_all_functions().items())
|
||||
if hasattr(func, "is_task")
|
||||
]
|
||||
return Crew(agents=agents, tasks=tasks)
|
||||
|
||||
Reference in New Issue
Block a user