Update notification service

This commit is contained in:
MacRimi
2026-02-24 17:55:03 +01:00
parent 507f769357
commit 4182af75ff
4 changed files with 131 additions and 228 deletions
+8
View File
@@ -419,6 +419,14 @@ class NotificationManager:
self._task_watcher = TaskWatcher(self._event_queue)
self._polling_collector = PollingCollector(self._event_queue)
# Create hook_watcher eagerly so we can wire the cross-source dedup.
# TaskWatcher._webhook_delivered points at ProxmoxHookWatcher._delivered
# so TaskWatcher can skip backup/replication events the webhook already
# delivered with richer data (full logs, sizes, durations).
if not self._hook_watcher:
self._hook_watcher = ProxmoxHookWatcher(self._event_queue)
self._task_watcher._webhook_delivered = self._hook_watcher._delivered
self._journal_watcher.start()
self._task_watcher.start()
self._polling_collector.start()