Update notification service

This commit is contained in:
MacRimi
2026-03-22 14:20:47 +01:00
parent 317739b508
commit d33741a90d
3 changed files with 258 additions and 92 deletions

View File

@@ -1396,10 +1396,10 @@ class TaskWatcher:
# 2. Check active file for newly started tasks (backup start)
self._check_active_tasks()
except Exception as e:
print(f"[TaskWatcher] Error reading task log: {e}")
time.sleep(2) # Check every 2 seconds
except Exception as e:
print(f"[TaskWatcher] Error reading task log: {e}")
time.sleep(5) # Check every 5 seconds (reduced from 2s for efficiency)
def _check_active_tasks(self):
"""Scan /var/log/pve/tasks/active to track vzdump for VM suppression.