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,6 @@
|
||||
<data name="Tooltips.Archive.Availability.Offline" xml:space="preserve"><value>אין גישה לתיקיית הארכיון; האינדקס נשאר כפי שנראה לאחרונה</value></data>
|
||||
<data name="Tooltips.Archive.Availability.Online" xml:space="preserve"><value>תיקיית הארכיון נגישה וניתנת לכתיבה</value></data>
|
||||
<data name="Tooltips.Archive.Availability.ReadOnly" xml:space="preserve"><value>התיקייה ניתנת לקריאה אך לא לכתיבה: עיון בלבד</value></data>
|
||||
<data name="Tooltips.Archive.Backup" xml:space="preserve"><value>כתיבת עותק עקבי של מסד הנתונים של האינדקס לתיקיית הגיבויים; שלושת האחרונים נשמרים</value></data>
|
||||
<data name="Tooltips.Archive.Cameras" xml:space="preserve"><value>תמונות לפי מצלמה; מצלמות עם מעט תמונות מקובצות יחד</value></data>
|
||||
<data name="Tooltips.Archive.CancelSearch" xml:space="preserve"><value>עצירת החיפוש; שום דבר לא השתנה</value></data>
|
||||
<data name="Tooltips.Archive.ClearFilter" xml:space="preserve"><value>הצגה מחדש של כל הרצפים בבחירה</value></data>
|
||||
@@ -73,7 +72,6 @@
|
||||
<data name="Tooltips.Archive.RebuildStart" xml:space="preserve"><value>הוספת הבנייה מחדש לתור · אפשר להמשיך להשתמש בארכיון בינתיים</value></data>
|
||||
<data name="Tooltips.Archive.Relink" xml:space="preserve"><value>בחירת התיקייה החדשה של ארכיון שהועבר; הרצפים שלו עוברים איתו</value></data>
|
||||
<data name="Tooltips.Archive.RenameApply" xml:space="preserve"><value>ביצוע השינויים האלה בדיוק בתיקיות, בקבצים הנלווים ובאינדקס · ממשיך לאחר קריסה</value></data>
|
||||
<data name="Tooltips.Archive.Restore" xml:space="preserve"><value>בחירת גיבוי יומי של האינדקס ב"הגדרות › מתקדם"; הגיבוי מחליף את האינדקס בהפעלה הבאה</value></data>
|
||||
<data name="Tooltips.Archive.RetagApply" xml:space="preserve"><value>שינוי התגיות של הרצפים האלה בקבצים הנלווים ובאינדקס</value></data>
|
||||
<data name="Tooltips.Archive.Retry" xml:space="preserve"><value>הרצה חוזרת של אותה פעולה</value></data>
|
||||
<data name="Tooltips.Archive.Scan" xml:space="preserve"><value>סריקה מצטברת: קבצים חדשים, שהשתנו ושהוסרו, לפי זמן השינוי והגודל</value></data>
|
||||
@@ -557,8 +555,6 @@
|
||||
<data name="Tooltips.Settings.AnalysisWidth" xml:space="preserve"><value>הצד הארוך המרבי שבו פריימים מפוענחים לניתוח מעמיק (מחצית מהגודל המקורי, עד לערך הזה); רוחב גדול יותר איטי יותר ורואה פרטים עדינים יותר</value></data>
|
||||
<data name="Tooltips.Settings.ArchiveFree" xml:space="preserve"><value>שטח פנוי בכונן הארכיון</value></data>
|
||||
<data name="Tooltips.Settings.ArchiveRoot" xml:space="preserve"><value>תיקיית השורש של הארכיון המקומי; הקבצים אינם מועברים · Enter מחיל, Esc מבטל</value></data>
|
||||
<data name="Tooltips.Settings.Backup" xml:space="preserve"><value>העתקת האינדקס לתיקיית הגיבויים; שלושת הגיבויים האחרונים נשמרים · כמה שניות</value></data>
|
||||
<data name="Tooltips.Settings.Backups" xml:space="preserve"><value>עותקים יומיים של האינדקס (שלושת האחרונים נשמרים); יש לבחור את העותק שאליו רוצים לחזור</value></data>
|
||||
<data name="Tooltips.Settings.BrowseArchive" xml:space="preserve"><value>בחירת תיקיית הארכיון</value></data>
|
||||
<data name="Tooltips.Settings.BrowseCache" xml:space="preserve"><value>בחירת תיקיית המטמון; כונן SSD מהיר עוזר</value></data>
|
||||
<data name="Tooltips.Settings.CacheFolder" xml:space="preserve"><value>המקום שאליו נשפכים פריימים ושבו נשמרות תמונות ממוזערות; כונן SSD מהיר עוזר · Enter מחיל, Esc מבטל</value></data>
|
||||
|
||||
Reference in new issue
Block a user