From 2f0ef1dc6922e3f5cfc6ebb253a0094b42786ba0 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 13 Oct 2024 18:47:15 -0500 Subject: [PATCH] Publish model state and embeddings reindex in dispatcher onConnect --- frigate/comms/dispatcher.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frigate/comms/dispatcher.py b/frigate/comms/dispatcher.py index 4a3862eaf..1f480fa9c 100644 --- a/frigate/comms/dispatcher.py +++ b/frigate/comms/dispatcher.py @@ -179,6 +179,11 @@ class Dispatcher: } self.publish("camera_activity", json.dumps(camera_status)) + self.publish("model_state", json.dumps(self.model_state.copy())) + self.publish( + "embeddings_reindex_progress", + json.dumps(self.embeddings_reindex.copy()), + ) # Dictionary mapping topic to handlers topic_handlers = {