feat(app): Jobs › Scheduled and the desktop scheduler

Owner review 2, R10 on the desktop: every timer that queued work out of
sight is now a visible, editable schedule of this PC.

- DesktopScheduleHost implements IScheduleHost: the PC's time zone, the
  archive at Settings › Archive's folder (refreshed from archive.json,
  none while it is offline), and three system schedules: archive-scan
  (every:<ScanIntervalMinutes>m, seeded once from the old setting, no
  catch-up), index-backup (every day with catch-up, replacing
  DatabaseBackups.RunDailyAsync) and housekeeping (daily 04:00 with
  catch-up: job history 90 days and the new cache-trim step).
- AppServices starts the Scheduler after the engine, once the archive was
  reopened; an unplugged archive is looked for every minute and the
  scheduler woken when it is back. The rescan loop and the daily backup
  loop are gone; ApplyJobSettings wakes the scheduler.
- CacheStore.Trim brings the cache to Settings › Storage › Cache limit,
  oldest files first, skipping files in use and the proxies, render-node
  and server-import folders; CacheTrimStep runs it as a clean-up step.
- Jobs gets a Queue | Scheduled segmented control. Scheduled lists the
  schedules (switch, name, action, when, next run, last result) with Run
  now, Edit, Reset (system) or Delete (user's, confirmed), the selected
  schedule's last runs with Show in queue, and an in-window editor that
  checks every field with the scheduler's limits. Jobs a schedule queued
  carry a "Scheduled" pill; the history line follows the housekeeping's
  job-history days.
- JobNotices: a scheduled background run raises a toast only when it
  fails (upkeep stays silent).
- Settings › Archive › Rescan every is removed; ScanIntervalMinutes stays
  only as the seed. Strings in en and it; the others are retranslated.
- The capture shows jobs-scheduled and jobs-schedule-editor on a stopped
  scheduler clock with sample schedules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit e25d812feb3f417cb9251c748c29e8035fd9b03c)
This commit is contained in:
Alby96 committed 2026-10-27 02:26:07 +01:00
1 parent 75daab7275
commit bc786c12c4
108 files changed
+3724 -490

No files matched your search

-1
View File
@@ -56,7 +56,6 @@
<data name="Settings.Archive.NoProxies" xml:space="preserve"><value>Không có</value></data>
<data name="Settings.Archive.NotSaved" xml:space="preserve"><value>Chưa lưu được cài đặt kho lưu trữ</value></data>
<data name="Settings.Archive.PickTitle" xml:space="preserve"><value>Chọn thư mục kho lưu trữ</value></data>
<data name="Settings.Archive.Polling" xml:space="preserve"><value>Quét lại mỗi</value></data>
<data name="Settings.Archive.Preview" xml:space="preserve"><value>Xem trước</value></data>
<data name="Settings.Archive.Proxies" xml:space="preserve"><value>Kích thước proxy</value></data>
<data name="Settings.Archive.ResetAction" xml:space="preserve"><value>Đặt lại kho lưu trữ</value></data>
-3
View File
@@ -339,7 +339,6 @@
<data name="Tooltips.Jobs.Filter.Running" xml:space="preserve"><value>Đang chạy hoặc đã tạm dừng</value></data>
<data name="Tooltips.Jobs.Folder" xml:space="preserve"><value>Hiển thị thư mục trong Explorer</value></data>
<data name="Tooltips.Jobs.HideLog" xml:space="preserve"><value>Ẩn nhật ký</value></data>
<data name="Tooltips.Jobs.History" xml:space="preserve"><value>Các tác vụ đã hoàn tất cũ hơn mức này sẽ bị loại bỏ khi Chronos khởi động</value></data>
<data name="Tooltips.Jobs.Import" xml:space="preserve"><value>Đưa ảnh vào từ thẻ nhớ hoặc thư mục; các lượt nhập, phân tích và kết xuất sau đó sẽ hiện ở đây</value></data>
<data name="Tooltips.Jobs.MoveUp" xml:space="preserve"><value>Tăng mức ưu tiên: tác vụ sẽ chạy trước các tác vụ có mức ưu tiên thấp hơn</value></data>
<data name="Tooltips.Jobs.Open" xml:space="preserve"><value>Mở đối tượng mà tác vụ này đã xử lý</value></data>
@@ -580,7 +579,6 @@
<data name="Tooltips.Settings.Page.About" xml:space="preserve"><value>Phiên bản, bản dựng, hệ thống, giấy phép, mã bên thứ ba</value></data>
<data name="Tooltips.Settings.Page.Advanced" xml:space="preserve"><value>Chế độ di động, nhật ký, chẩn đoán, sao lưu và khôi phục cơ sở dữ liệu, đặt lại</value></data>
<data name="Tooltips.Settings.Page.Analysis" xml:space="preserve"><value>Độ rộng phân tích, ngưỡng ban đêm và sao, phân tích sâu</value></data>
<data name="Tooltips.Settings.Page.Archive" xml:space="preserve"><value>Thư mục kho lưu trữ, mẫu đặt tên, kích thước proxy và hình thu nhỏ, quét lại</value></data>
<data name="Tooltips.Settings.Page.Formats" xml:space="preserve"><value>Bộ giải mã xử lý từng định dạng trên máy tính này, liên kết cài đặt codec</value></data>
<data name="Tooltips.Settings.Page.General" xml:space="preserve"><value>Ngôn ngữ, chủ đề, khởi động, thông báo</value></data>
<data name="Tooltips.Settings.Page.Import" xml:space="preserve"><value>Quy tắc phiên, xác minh, trùng lặp, thao tác sau khi nhập</value></data>
@@ -591,7 +589,6 @@
<data name="Tooltips.Settings.Parallelism" xml:space="preserve"><value>Số ảnh mà tác vụ đang chạy xử lý cùng lúc; các tác vụ chạy lần lượt từng cái một. Ít hơn sẽ chừa nhiều tài nguyên hơn cho chương trình khác · Enter để áp dụng, Esc để hoàn tác</value></data>
<data name="Tooltips.Settings.ParallelismAuto" xml:space="preserve"><value>Tự động: một nửa số lõi logic</value></data>
<data name="Tooltips.Settings.ParallelismReset" xml:space="preserve"><value>Về Tự động: một nửa số lõi logic</value></data>
<data name="Tooltips.Settings.Polling" xml:space="preserve"><value>Tần suất Chronos quét lại kho lưu trữ để tìm thay đổi được thực hiện ở nơi khác, chẳng hạn bởi một máy chủ dùng chung kho</value></data>
<data name="Tooltips.Settings.Portable" xml:space="preserve"><value>Bật khi có portable.txt nằm cạnh Chronos.exe: mọi dữ liệu nằm trong thư mục dữ liệu của nó</value></data>
<data name="Tooltips.Settings.PreferHardware" xml:space="preserve"><value>Dùng bộ mã hóa phần cứng khi có bộ hỗ trợ cài đặt sẵn; nếu không thì dùng phần mềm</value></data>
<data name="Tooltips.Settings.Preview" xml:space="preserve"><value>Ba tên đầu tiên của một lượt nhập mẫu với các mẫu này</value></data>