Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
fix: set rpm controller timer as daemon to prevent process hang
Alex Larionov807f97114f14
diff --git a/lib/crewai/src/crewai/utilities/rpm_controller.py b/lib/crewai/src/crewai/utilities/rpm_controller.pyindex 4704c3e5b..d745bfc5e 100644--- a/lib/crewai/src/crewai/utilities/rpm_controller.py+++ b/lib/crewai/src/crewai/utilities/rpm_controller.py@@ -79,6 +79,7 @@ class RPMController(BaseModel):self._current_rpm = 0if not self._shutdown_flag:self._timer = threading.Timer(60.0, self._reset_request_count)+ self._timer.daemon = Trueself._timer.start()if self._lock: