feat(server): scheduled jobs on the server and a Scheduled tab in the admin panel
Owner review 2, R10: nothing may run out of sight, so every timer the server ran becomes a system schedule the admin panel shows and manages, and administrators create their own. - SchedulerHost runs the shared Scheduler on the job engine (started after JobEngineHost, stopped before it); ServerScheduleHost gives it the container's time zone (UTC with a warning when TZ is unknown), the archive refreshed from archive.json at every run (what ArchivePolling did), the clean-up steps and the system schedules: archive-scan every 10 minutes (no catch-up, also run once at start like the polling), upload-cleanup every 30 minutes, index-backup at 03:00 (SQLite only), housekeeping (job history) at 04:00 and audit-cleanup at 04:30. - ArchivePolling and DatabaseBackupService are gone; UploadMaintenance only recovers commits at start, its sweep is the "uploads" clean-up step. - /api/v1/schedules (ManageArchive, audited): list with actions and time zone, create, PUT/PATCH, delete (409 schedule_system), run now (409 schedule_pending), reset (409 schedule_no_defaults), runs paged by cursor; invalid fields are 400 invalid_schedule naming the field. - CHRONOS_AUDIT_RETENTION_DAYS (AuditRetentionDays, default 365) seeds the audit clean-up; set by the environment it is applied at every start and locked. Job history leaves Settings: it is the housekeeping schedule's age limit, and the setting is what a reset restores. - Admin panel: Jobs has Queue and Scheduled tabs; schedules with when (in the panel's language and the server's zone), next run, last result, a switch, Run now, Edit, Delete or Reset, their runs linking to the jobs, and a side panel for the action, recurrence and parameters; job rows a schedule queued carry a Scheduled pill. Strings in en and it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 808ce94ae29e3bf4522cb4d40dfd76d4f8529c64)
This commit is contained in:
1 parent
e5508e7e69
commit
75daab7275
66 files changed
+1985
-290
No files matched your search
@@ -58,6 +58,7 @@
|
||||
<data name="Server.Error.InvalidPriority" xml:space="preserve"><value>La priorità deve essere background, normal o user.</value></data>
|
||||
<data name="Server.Error.InvalidProxy" xml:space="preserve"><value>Il proxy non è un JPEG che il server sa leggere.</value></data>
|
||||
<data name="Server.Error.InvalidRole" xml:space="preserve"><value>Il ruolo deve essere admin, editor, uploader o viewer.</value></data>
|
||||
<data name="Server.Error.InvalidSchedule" xml:space="preserve"><value>Il campo {0} della pianificazione non è valido.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.InvalidSetting" xml:space="preserve"><value>L'impostazione {0} non è valida.</value></data>
|
||||
<data name="Server.Error.InvalidSettings" xml:space="preserve"><value>Le impostazioni devono essere JSON valido.</value></data>
|
||||
<data name="Server.Error.InvalidState" xml:space="preserve"><value>Il job non può farlo nello stato attuale.</value></data>
|
||||
@@ -79,6 +80,9 @@
|
||||
<data name="Server.Error.RateLimited" xml:space="preserve"><value>Troppi tentativi; attendi un minuto e riprova.</value></data>
|
||||
<data name="Server.Error.RenderExists" xml:space="preserve"><value>Questo render è già archiviato in un'altra sequenza.</value></data>
|
||||
<data name="Server.Error.SamePassword" xml:space="preserve"><value>Scegli una password diversa da quella attuale.</value></data>
|
||||
<data name="Server.Error.ScheduleNoDefaults" xml:space="preserve"><value>Solo una pianificazione di sistema si può riportare ai valori predefiniti.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.SchedulePending" xml:space="preserve"><value>L'ultimo job della pianificazione non è ancora terminato; riprova quando avrà finito.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.ScheduleSystem" xml:space="preserve"><value>Una pianificazione di sistema non si può eliminare; disattivala.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.Self" xml:space="preserve"><value>Non puoi farlo sul tuo account.</value></data>
|
||||
<data name="Server.Error.SequenceBusy" xml:space="preserve"><value>Un'attività sta lavorando su questa sequenza o sul suo archivio; riprova quando è libera.</value></data>
|
||||
<data name="Server.Error.SessionExpired" xml:space="preserve"><value>La sessione è scaduta; accedi di nuovo.</value></data>
|
||||
@@ -103,6 +107,7 @@
|
||||
<data name="Server.Label.Server" xml:space="preserve"><value>Server</value></data>
|
||||
<data name="Server.Label.Status" xml:space="preserve"><value>Stato</value></data>
|
||||
<data name="Server.Latency" xml:space="preserve"><value>{0} ms</value></data>
|
||||
<data name="Server.Log.UploadsSwept" xml:space="preserve"><value>Caricamenti scaduti: {0}, file rimossi: {1}, record rimossi: {2}, token rimossi: {3}</value><comment>long: job log line</comment></data>
|
||||
<data name="Server.Login.Cancel" xml:space="preserve"><value>Annulla</value></data>
|
||||
<data name="Server.Login.Password" xml:space="preserve"><value>Password</value></data>
|
||||
<data name="Server.Login.SignIn" xml:space="preserve"><value>Accedi</value></data>
|
||||
|
||||
Reference in new issue
Block a user