mirror of
https://github.com/crewAIInc/crewAI.git
synced 2025-12-15 11:58:31 +00:00
fix: set rpm controller timer as daemon to prevent process hang
Some checks failed
Some checks failed
Co-authored-by: Greyson LaLonde <greyson.r.lalonde@gmail.com>
This commit is contained in:
@@ -79,6 +79,7 @@ class RPMController(BaseModel):
|
|||||||
self._current_rpm = 0
|
self._current_rpm = 0
|
||||||
if not self._shutdown_flag:
|
if not self._shutdown_flag:
|
||||||
self._timer = threading.Timer(60.0, self._reset_request_count)
|
self._timer = threading.Timer(60.0, self._reset_request_count)
|
||||||
|
self._timer.daemon = True
|
||||||
self._timer.start()
|
self._timer.start()
|
||||||
|
|
||||||
if self._lock:
|
if self._lock:
|
||||||
|
|||||||
Reference in New Issue
Block a user