From ba1c9c60a582a229482e68dcc903c29ef38c1859 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 30 Apr 2025 09:15:56 -0500 Subject: [PATCH] use lower default timeout --- frigate/embeddings/maintainer.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frigate/embeddings/maintainer.py b/frigate/embeddings/maintainer.py index d9363d1d42..f62a5476b8 100644 --- a/frigate/embeddings/maintainer.py +++ b/frigate/embeddings/maintainer.py @@ -231,7 +231,7 @@ class EmbeddingMaintainer(threading.Thread): def _process_updates(self) -> None: """Process event updates""" - update = self.event_subscriber.check_for_update(timeout=0.01) + update = self.event_subscriber.check_for_update() if update is None: return @@ -324,7 +324,7 @@ class EmbeddingMaintainer(threading.Thread): def _process_finalized(self) -> None: """Process the end of an event.""" while True: - ended = self.event_end_subscriber.check_for_update(timeout=0.01) + ended = self.event_end_subscriber.check_for_update() if ended == None: break @@ -420,7 +420,7 @@ class EmbeddingMaintainer(threading.Thread): def _process_recordings_updates(self) -> None: """Process recordings updates.""" while True: - recordings_data = self.recordings_subscriber.check_for_update(timeout=0.01) + recordings_data = self.recordings_subscriber.check_for_update() if recordings_data == None: break @@ -437,7 +437,7 @@ class EmbeddingMaintainer(threading.Thread): def _process_event_metadata(self): # Check for regenerate description requests - (topic, payload) = self.event_metadata_subscriber.check_for_update(timeout=0.01) + (topic, payload) = self.event_metadata_subscriber.check_for_update() if topic is None: return @@ -451,7 +451,7 @@ class EmbeddingMaintainer(threading.Thread): def _process_dedicated_lpr(self) -> None: """Process event updates""" - (topic, data) = self.detection_subscriber.check_for_update(timeout=0.01) + (topic, data) = self.detection_subscriber.check_for_update() if topic is None: return