feat: owner review 2 phase 2: scheduled jobs and log settings (#10)
CI / Build and test (push) Successful in 7m0s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 6s
Release / Build, test and publish (push) Successful in 13m28s
CI / PostgreSQL 16 integration (push) Successful in 5m52s
CI / PostgreSQL 17 integration (push) Successful in 4m50s
CI / Docker image (push) Successful in 1m4s
Release / Server image (push) Successful in 1m35s
CI / Build and test (push) Successful in 7m0s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 6s
Release / Build, test and publish (push) Successful in 13m28s
CI / PostgreSQL 16 integration (push) Successful in 5m52s
CI / PostgreSQL 17 integration (push) Successful in 4m50s
CI / Docker image (push) Successful in 1m4s
Release / Server image (push) Successful in 1m35s
- Jobs > Scheduled on the desktop and the admin panel. Every timer that queued work is now a visible system schedule: archive scan, upload clean-up, index backup, job-history and audit clean-ups, desktop housekeeping. New actions: verify, thumbnails, proxies, analysis, maintenance, backup, clean-ups, reports. - The scheduler: migration 0007, in-house recurrence, compare-and-set claim, catch-up, scan at start. - Log settings: levels, retention, size parts, total limit, daily or hourly rotation, audit retention, diagnostics share; the server writes Debug/Trace to its files again; logging never fails a job. Upgrade: CHRONOS_LOG_LEVEL set in an existing container locks both levels; migration 0007 is one-way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #10.
This commit is contained in:
1 parent
1f089888e8
commit
af9eeaab9b
349 files changed
+28341
-1304
No files matched your search
@@ -5,6 +5,80 @@ commits follow Conventional Commits (release notes are generated from them by `C
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.1.0-rc.4] — 2026-10-27
|
||||
|
||||
### Added
|
||||
- **Jobs › Scheduled**, on the desktop and in the admin panel: every scheduled job of this PC or of the server, its own
|
||||
system schedules included, with when it runs, its next run, its last result and an on/off switch; Run now, Edit,
|
||||
Reset (system schedules) or Delete (your own), and a schedule's last runs, each opening its job in the Queue tab.
|
||||
Jobs a schedule queued carry a *Scheduled* pill (owner review 2, R10).
|
||||
- Schedules you create: scan, integrity check (a share of the archive per run, the least recently checked first),
|
||||
thumbnails, proxies (when the archive makes them), analysis, maintenance, index backup, clean-up, and duplicates and
|
||||
orphans reports, every n minutes, hours or days, daily, on chosen weekdays or on a day of the month, at a time of
|
||||
the PC's or the server's time zone, with priority and catch-up (a run missed while the program was off runs once
|
||||
when it is back). A run is skipped while the previous one, or the same work, is still pending.
|
||||
- System schedules for everything that used to run out of sight. Server: *Archive scan* (every 10 minutes and at
|
||||
start), *Upload clean-up* (every 6 hours), *Index backup* (03:00, SQLite only), *Job history clean-up* (04:00) and
|
||||
*Audit log clean-up* (04:30, off by default). Desktop: *Archive scan* (every 10 minutes, at start and when an
|
||||
unplugged archive is back), *Index backup* (every day) and *Housekeeping* (04:00: job history, and the disk cache
|
||||
trimmed to Settings › Storage › Cache limit, oldest files first, never files in use, synced proxies or import
|
||||
staging). They can be changed, turned off and reset, never deleted.
|
||||
- New job kinds *Index backup* and *Clean-up*; duplicates and orphans reports also run as jobs, on the server too.
|
||||
The clean-up's trash report lists old trash entries and never deletes them.
|
||||
- Admin panel: the Scheduled tab refreshes live (skipped runs, moved next runs, other administrators' edits), shows
|
||||
every time in the server's time zone, and the Logs page and the dashboard describe schedule changes and runs in
|
||||
words, a system schedule by its name in your language.
|
||||
- API v1: `/api/v1/schedules` (list, create, `PUT`/`PATCH`, delete, run now, reset, runs), audited; the WebSocket
|
||||
event `scheduleChanged`; jobs carry `scheduleId` when a schedule queued them; `GET/PUT /server/settings` carries
|
||||
`logs` and `lockedBy`.
|
||||
- Server: log settings in the admin panel's Settings › **Logs**: file level, console level, days kept, file size,
|
||||
total size, daily or hourly rotation, audit retention and the diagnostics share, applied without a restart; and the
|
||||
variables `CHRONOS_LOG_CONSOLE_LEVEL`, `CHRONOS_LOG_RETENTION_DAYS`, `CHRONOS_LOG_MAX_FILE_MB`,
|
||||
`CHRONOS_LOG_MAX_TOTAL_MB`, `CHRONOS_LOG_ROTATION`, `CHRONOS_AUDIT_RETENTION_DAYS` and `CHRONOS_DIAGNOSTICS_LOG_MB`
|
||||
(owner review 2, R11).
|
||||
- Desktop: Settings › Advanced gains *Log level*, *Keep logs*, *File size*, *Logs total*, *Rotation* and
|
||||
*Diagnostics logs*, applied from the first log line, and a Reset section for them.
|
||||
|
||||
### Changed
|
||||
- **Upgrade:** the `docker-compose.yml` and Unraid template of earlier versions set `CHRONOS_LOG_LEVEL=Information`.
|
||||
That variable now sets and locks both the file and the console level, so Settings › Logs shows them read-only, its
|
||||
tooltip naming the variable. To choose the levels in the admin panel, remove it: in compose delete the line; on
|
||||
Unraid edit the container and clear *Log level*.
|
||||
- **Upgrade:** the index (SQLite, or the server's PostgreSQL database) moves to schema 7 (migration 0007, schedules)
|
||||
at the first start, one way: an older build refuses the upgraded index, so going back means restoring a copy made
|
||||
before the upgrade.
|
||||
- No timer queues work out of sight any more: the periodic archive scan, the upload sweep, the daily index backup and
|
||||
the job history purge are system schedules in Jobs › Scheduled. The job engine no longer deletes finished jobs at
|
||||
start; the job history clean-up does, at 04:00.
|
||||
- Index backups: the server copies at 03:00 (and once after a missed night), the desktop every day, instead of at
|
||||
start when the newest copy was a day old. The first start after the upgrade still copies at once when the newest
|
||||
copy is a day old. *Back up now*, *Back up database* and the copy kept before a restore keep as many copies as the
|
||||
backup schedules (3 by default), so no copy deletes what a schedule keeps.
|
||||
- Admin panel: Settings no longer has *Job history (days)*; it is the age limit of the *Job history clean-up*
|
||||
schedule, and the saved setting (server.json or API) is what Reset restores, without a restart. *Keep audit* in
|
||||
Settings › Logs is the *Audit log clean-up* schedule's age limit: the audit log is kept forever by default, and
|
||||
`CHRONOS_AUDIT_RETENTION_DAYS` fixes the limit at every start.
|
||||
- Server: an abandoned upload is swept every 6 hours, so it may expire up to 6 hours after its 48 idle hours.
|
||||
- Desktop: Settings › Archive › *Rescan every* is gone; its value became the interval of the *Archive scan* schedule,
|
||||
whose scans follow Settings › Analysis › *After a scan* as it is at every run. An archive unplugged at start is
|
||||
looked for every minute.
|
||||
- Desktop: a scheduled background job raises a toast when it fails (a backup, an integrity check), unless the next
|
||||
run repeats it (scans, thumbnails, proxies, light analysis, clean-ups).
|
||||
- Log files of every program are capped: a file continues in a numbered one (`.1.log`, `.2.log`…) at 50 MB, and the
|
||||
oldest are deleted when all of them exceed 1,024 MB (the file being written is always kept); hourly rotation names
|
||||
files `prefix-yyyyMMdd-HH.log`.
|
||||
- `CHRONOS_LOG_LEVEL` also accepts Critical and None (and info, warn, off); a number is refused at start. In
|
||||
`server.json`, `LogLevel` now sets the log files only and `ConsoleLogLevel` the console.
|
||||
- Admin panel: a setting fixed by an environment variable names that exact variable in its tooltip.
|
||||
- API v1: `POST /api/v1/jobs` with kind `duplicates` or `orphans` queues a report job instead of answering 409
|
||||
`job_unavailable`.
|
||||
- Containers: `TZ` also sets the time zone of the server's schedules.
|
||||
|
||||
### Fixed
|
||||
- Server: `CHRONOS_LOG_LEVEL=Debug` or `Trace` never reached the log files, which stopped at Information.
|
||||
- A log that cannot be written (its folder removed, a full disk) loses only that line: a failing job is still marked
|
||||
Failed, and the job engine and the schedules go on, instead of the job staying Running and the worker stopping.
|
||||
|
||||
## [0.1.0-rc.3] — 2026-10-26
|
||||
|
||||
### Added
|
||||
|
||||
Reference in new issue
Block a user