fix: logging never fails a job, one backup retention, first copy after the upgrade
Owner review 2, phase 2 review findings (scheduler core). - Log.Write caught only IOException. Microsoft.Extensions.Logging wraps provider failures in an AggregateException, so a log line that could not be written (in tests: the process-wide sink of a stopped server whose log folder was gone) escaped JobEngine.RunAsync's catch before the failure was stored: the job stayed running and the worker faulted. This was the cause of the intermittent JobApiTests/ArchiveModuleTests failures. Log.Write now drops any non-fatal sink failure, TeeLogSink keeps a line from the other sinks, FileLogSink drops a line it cannot write and reopens the file at the next one, and LoggerSink drops what the providers throw. The scheduler's loop relies on the same guarantee. - The daily backup loop (RunDailyAsync, IsDue, Interval, CheckInterval) had no caller since the index-backup schedule replaced it; it is removed and the DatabaseBackups summary describes the schedule. - The first copy after the upgrade no longer waits a day (or for 03:00): SystemSchedule.LastDone seeds a new row due at once when its work was last done a period or more before, and both hosts pass the newest copy in the backups folder for index-backup. - Back up now (Settings and Archive), the copy kept before a restore and a backup job that keeps fewer prune to the largest Copies kept of the backup schedules (DatabaseBackups.KeptAsync), not a fixed three. The four tooltips that promised three daily copies are reworded (en, it) and their stale translations deleted. - New tests for the scheduler loop itself: a tick, Wake, a pass that threw, and dispose during a pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit c5ad0c4c3f636129afe5dd1ce039185516da5621)
This commit is contained in:
1 parent
422f33d5f3
commit
e384564784
59 files changed
+668
-264
No files matched your search
@@ -21,7 +21,7 @@
|
||||
<data name="Tooltips.Archive.Availability.Offline" xml:space="preserve"><value>La cartella dell'archivio non è raggiungibile; l'indice resta com'era</value></data>
|
||||
<data name="Tooltips.Archive.Availability.Online" xml:space="preserve"><value>La cartella dell'archivio è raggiungibile e scrivibile</value></data>
|
||||
<data name="Tooltips.Archive.Availability.ReadOnly" xml:space="preserve"><value>Leggibile ma non scrivibile: solo consultazione</value></data>
|
||||
<data name="Tooltips.Archive.Backup" xml:space="preserve"><value>Scrive una copia coerente del database dell'indice nella cartella delle copie; si tengono le ultime tre</value></data>
|
||||
<data name="Tooltips.Archive.Backup" xml:space="preserve"><value>Scrive una copia coerente del database dell'indice nella cartella delle copie, che ne tiene quante le copie pianificate in Attività › Pianificate</value></data>
|
||||
<data name="Tooltips.Archive.Cameras" xml:space="preserve"><value>Foto per fotocamera; le minori sono raggruppate</value></data>
|
||||
<data name="Tooltips.Archive.CancelSearch" xml:space="preserve"><value>Interrompi la ricerca; nulla è stato modificato</value></data>
|
||||
<data name="Tooltips.Archive.ClearFilter" xml:space="preserve"><value>Mostra di nuovo tutte le sequenze della selezione</value></data>
|
||||
@@ -72,7 +72,7 @@
|
||||
<data name="Tooltips.Archive.RebuildStart" xml:space="preserve"><value>Metti in coda la ricostruzione · l'archivio resta utilizzabile</value></data>
|
||||
<data name="Tooltips.Archive.Relink" xml:space="preserve"><value>Scegli la nuova cartella di un archivio spostato; le sequenze lo seguono</value></data>
|
||||
<data name="Tooltips.Archive.RenameApply" xml:space="preserve"><value>Applica esattamente queste modifiche a cartelle, sidecar e indice · riprende dopo un arresto</value></data>
|
||||
<data name="Tooltips.Archive.Restore" xml:space="preserve"><value>Scegli una copia giornaliera dell'indice in Impostazioni › Avanzate; sostituisce l'indice al prossimo avvio</value></data>
|
||||
<data name="Tooltips.Archive.Restore" xml:space="preserve"><value>Scegli una copia dell'indice in Impostazioni › Avanzate; sostituisce l'indice al prossimo avvio</value></data>
|
||||
<data name="Tooltips.Archive.RetagApply" xml:space="preserve"><value>Cambia i tag di queste sequenze in sidecar e indice</value></data>
|
||||
<data name="Tooltips.Archive.Retry" xml:space="preserve"><value>Esegui di nuovo la stessa azione</value></data>
|
||||
<data name="Tooltips.Archive.Scan" xml:space="preserve"><value>Scansione incrementale: file nuovi, modificati e rimossi per data e dimensione</value></data>
|
||||
@@ -623,8 +623,8 @@
|
||||
<data name="Tooltips.Settings.AnalysisWidth" xml:space="preserve"><value>Lato lungo massimo dei fotogrammi decodificati per l'analisi profonda (metà della dimensione nativa fino a questo); più largo è più lento e vede dettagli più fini</value></data>
|
||||
<data name="Tooltips.Settings.ArchiveFree" xml:space="preserve"><value>Spazio libero sull'unità dell'archivio</value></data>
|
||||
<data name="Tooltips.Settings.ArchiveRoot" xml:space="preserve"><value>Radice dell'archivio locale; i file non vengono spostati · Invio applica, Esc annulla</value></data>
|
||||
<data name="Tooltips.Settings.Backup" xml:space="preserve"><value>Copia l'indice nella cartella dei backup; vengono conservate le tre copie più recenti · pochi secondi</value></data>
|
||||
<data name="Tooltips.Settings.Backups" xml:space="preserve"><value>Copie giornaliere dell'indice (si tengono le tre più recenti); scegli quella a cui tornare</value></data>
|
||||
<data name="Tooltips.Settings.Backup" xml:space="preserve"><value>Copia l'indice nella cartella dei backup, che ne tiene quante le copie pianificate in Attività › Pianificate · pochi secondi</value></data>
|
||||
<data name="Tooltips.Settings.Backups" xml:space="preserve"><value>Copie dell'indice fatte dalle copie pianificate e da Salva una copia; scegli quella a cui tornare</value></data>
|
||||
<data name="Tooltips.Settings.BrowseArchive" xml:space="preserve"><value>Scegli la cartella dell'archivio</value></data>
|
||||
<data name="Tooltips.Settings.BrowseCache" xml:space="preserve"><value>Scegli la cartella della cache; un SSD veloce aiuta</value></data>
|
||||
<data name="Tooltips.Settings.CacheFolder" xml:space="preserve"><value>Dove vanno i fotogrammi temporanei e le miniature; un SSD veloce aiuta · Invio applica, Esc annulla</value></data>
|
||||
|
||||
Reference in new issue
Block a user