Former-commit-id: 2e0088d4d7
pull/47/head
Kye 1 year ago
parent 4ccc8bb9f3
commit a88c97623c

@ -135,7 +135,7 @@ class Orchestrator(ABC):
self.task_queue.append(objective) self.task_queue.append(objective)
#assign tasks to agents #assign tasks to agents
results = [self.assign_task() for _ in range(len(self.task_queue))] results = [self.assign_task(agent_id, task) for agent_id, task in zip(range(len(self.agents)), self.task_queue)]
for result in results: for result in results:
self.append_to_db(collection, result) self.append_to_db(collection, result)

Loading…
Cancel
Save