Reduce metric writes and preserve scheduler history

This commit is contained in:
Mikei386
2026-07-13 20:53:16 +02:00
parent ea97d7dbc9
commit 819055cbf0
12 changed files with 228 additions and 27 deletions
+6 -1
View File
@@ -2,13 +2,18 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "urbm">
<!ENTITY author "Michael Roll">
<!ENTITY version "2026.07.13.r010">
<!ENTITY version "2026.07.13.r011">
<!ENTITY pluginURL "https://git.casaderoll.de/michael/URBM/raw/branch/main/dist/urbm.plg">
<!ENTITY packageURL "https://git.casaderoll.de/michael/URBM/raw/branch/main/dist/urbm-&version;-x86_64-1.txz">
<!ENTITY packageSHA256 "REPLACE_DURING_RELEASE">
]>
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;" min="7.0.0" support="https://git.casaderoll.de/michael/URBM/issues" icon="urbm.png">
<CHANGES>
### 2026.07.13.r011
- Use durable backup measurements when deciding whether a scheduled job needs a catch-up run, even after activity history was cleared.
- Append one compact JSON-lines record per completed backup instead of rewriting the full metric history for every queue state change.
- Migrate the existing `backup-metrics.json` automatically to `backup-metrics.jsonl` and compact in batches after the file exceeds 5,500 records while retaining the newest 5,000.
### 2026.07.13.r010
- Return an empty JSON array instead of `null` when no dashboard backup measurements exist yet.
- Make the WebGUI tolerate empty or invalid metric responses so the rest of the interface remains available.