mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-21 03:12:16 +00:00
Update notification_events.py
This commit is contained in:
@@ -1396,10 +1396,10 @@ class TaskWatcher:
|
|||||||
# 2. Check active file for newly started tasks (backup start)
|
# 2. Check active file for newly started tasks (backup start)
|
||||||
self._check_active_tasks()
|
self._check_active_tasks()
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"[TaskWatcher] Error reading task log: {e}")
|
print(f"[TaskWatcher] Error reading task log: {e}")
|
||||||
|
|
||||||
time.sleep(5) # Check every 5 seconds (reduced from 2s for efficiency)
|
time.sleep(5) # Check every 5 seconds (reduced from 2s for efficiency)
|
||||||
|
|
||||||
def _check_active_tasks(self):
|
def _check_active_tasks(self):
|
||||||
"""Scan /var/log/pve/tasks/active to track vzdump for VM suppression.
|
"""Scan /var/log/pve/tasks/active to track vzdump for VM suppression.
|
||||||
|
|||||||
Reference in New Issue
Block a user