From 807f97114f145ef8efd6b34ac8a4d7615ae6b0cf Mon Sep 17 00:00:00 2001 From: Alex Larionov Date: Thu, 11 Dec 2025 07:59:55 +0000 Subject: [PATCH] fix: set rpm controller timer as daemon to prevent process hang Co-authored-by: Greyson LaLonde --- lib/crewai/src/crewai/utilities/rpm_controller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/crewai/src/crewai/utilities/rpm_controller.py b/lib/crewai/src/crewai/utilities/rpm_controller.py index 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 = 0 if not self._shutdown_flag: self._timer = threading.Timer(60.0, self._reset_request_count) + self._timer.daemon = True self._timer.start() if self._lock: