Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

chore: fix retry when quality check failed (#3698)

Tao Sun66fab597d140
diff --git a/camel/societies/workforce/workforce.py b/camel/societies/workforce/workforce.py
index 5f4e2c349..34a5e26b6 100644
--- a/camel/societies/workforce/workforce.py
+++ b/camel/societies/workforce/workforce.py
@@ -3862,6 +3862,8 @@ class Workforce(BaseNode):
# Record the start time when a task is posted
self._task_start_times[task.id] = time.time()
+ # Ensure assignee mapping exists for retries and follow-up handling.
+ self._assignees[task.id] = assignee_id
task.assigned_worker_id = assignee_id
task_started_event = TaskStartedEvent(