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
@@ -283,8 +283,6 @@
|
||||
<data name="Admin.Settings.HttpPort.Tip" xml:space="preserve"><value>HTTP를 통한 관리 패널 및 API의 포트</value></data>
|
||||
<data name="Admin.Settings.HttpsPort" xml:space="preserve"><value>HTTPS 포트</value></data>
|
||||
<data name="Admin.Settings.HttpsPort.Tip" xml:space="preserve"><value>Chronos 클라이언트용 TLS를 통한 API의 포트</value></data>
|
||||
<data name="Admin.Settings.JobHistoryDays" xml:space="preserve"><value>작업 기록(일)</value></data>
|
||||
<data name="Admin.Settings.JobHistoryDays.Tip" xml:space="preserve"><value>완료된 작업을 보관하는 일수</value></data>
|
||||
<data name="Admin.Settings.JobPriority.Tip" xml:space="preserve"><value>우선순위 대기열에서 ‘{0}’의 수준입니다. 상위 수준이 먼저 실행되며 하위 수준을 일시 중지합니다.</value></data>
|
||||
<data name="Admin.Settings.Jobs" xml:space="preserve"><value>작업</value></data>
|
||||
<data name="Admin.Settings.Language" xml:space="preserve"><value>언어</value></data>
|
||||
@@ -306,7 +304,6 @@
|
||||
<data name="Admin.Settings.ProxyBypassed" xml:space="preserve"><value>프록시 미경유</value></data>
|
||||
<data name="Admin.Settings.ProxyBypassed.Tip" xml:space="preserve"><value>TLS 모드가 ‘역방향 프록시’이지만 이 페이지는 신뢰하는 프록시를 거쳐 HTTPS로 전달되지 않았습니다. 사용 중인 프록시를 통해 이 페이지를 열거나 프록시 주소를 CHRONOS_TRUSTED_PROXIES에 추가하십시오.</value></data>
|
||||
<data name="Admin.Settings.Restart" xml:space="preserve"><value>다시 시작 필요</value></data>
|
||||
<data name="Admin.Settings.Restart.Tip" xml:space="preserve"><value>저장한 포트, TLS, 워커, 청크 크기, 작업 기록 설정은 다시 시작한 후에 적용됩니다.</value></data>
|
||||
<data name="Admin.Settings.Server" xml:space="preserve"><value>서버</value></data>
|
||||
<data name="Admin.Settings.ServerName" xml:space="preserve"><value>서버 이름</value></data>
|
||||
<data name="Admin.Settings.ServerName.Tip" xml:space="preserve"><value>클라이언트와 LAN에 표시되는 이름</value></data>
|
||||
|
||||
Reference in new issue
Block a user