mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
ordering tasks properly
This commit is contained in:
@@ -45,7 +45,7 @@ def CrewBase(cls: T) -> T:
|
|||||||
]
|
]
|
||||||
tasks = [
|
tasks = [
|
||||||
getattr(self, name)()
|
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")
|
if hasattr(func, "is_task")
|
||||||
]
|
]
|
||||||
return Crew(agents=agents, tasks=tasks)
|
return Crew(agents=agents, tasks=tasks)
|
||||||
|
|||||||
Reference in New Issue
Block a user