From 860a12ef705cf6452f2d6fe4fc4d6e68e40dba52 Mon Sep 17 00:00:00 2001 From: Winston Ametsitsi Date: Sat, 14 Oct 2023 01:35:09 -0700 Subject: [PATCH] fix queues not emptying fully by changing gets to a blocking call with short timeout --- frigate/record/maintainer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/record/maintainer.py b/frigate/record/maintainer.py index 9aa60585d..34c4fd454 100644 --- a/frigate/record/maintainer.py +++ b/frigate/record/maintainer.py @@ -420,7 +420,7 @@ class RecordingMaintainer(threading.Thread): current_tracked_objects, motion_boxes, regions, - ) = self.object_recordings_info_queue.get(False) + ) = self.object_recordings_info_queue.get(True, timeout=0.1) if self.process_info[camera]["record_enabled"].value: self.object_recordings_info[camera].append( @@ -442,7 +442,7 @@ class RecordingMaintainer(threading.Thread): camera, frame_time, dBFS, - ) = self.audio_recordings_info_queue.get(False) + ) = self.audio_recordings_info_queue.get(True, timeout=0.1) if self.process_info[camera]["record_enabled"].value: self.audio_recordings_info[camera].append(