From a88c97623ca3a175436d9c81a6b993c1f9b0b92a Mon Sep 17 00:00:00 2001 From: Kye Date: Thu, 27 Jul 2023 17:07:17 -0400 Subject: [PATCH] clean i[ Former-commit-id: 2e0088d4d7180e9b625bf2c8a461f1203c510d57 --- swarms/orchestrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarms/orchestrate.py b/swarms/orchestrate.py index 65e4f2af..fabf4738 100644 --- a/swarms/orchestrate.py +++ b/swarms/orchestrate.py @@ -135,7 +135,7 @@ class Orchestrator(ABC): self.task_queue.append(objective) #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: self.append_to_db(collection, result)