S021: queue schedules, pause and limits, dependencies, power actions

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-25 21:23:13 -06:00
commit 4407404b85

View file

@ -199,3 +199,8 @@ Verified: `nice cargo test -j 2 -p medlar --test add` green (14, four with the r
Not done: the desktop's file chooser (portal) was never tried, only that it fails plainly is in the code; links of a batch are not asked about; what is known is found when the fields change, not when the list does; a start time is kept but queue schedules are S021's, and time asleep doesn't count; a metalink file is refused as a list (`read_metalink` is not wired, 3.3); files already on disk but not in the list are not noticed (the engine numbers names); no hidden release run.
Later: `App` doesn't set `ClientOptions::known_hosts` yet (S011).
Seen: boxes were ticked together after the tests, against rule 3.
## S021 — Queues, schedule, power (compiled, not tested)
- `schedule::{Clock, SystemClock, ManualClock, open, opened_between, Grid, cycle}`; set `Config.clock`. The manager's `choose` now reads queue `paused`, `max_active`, `schedule` and task `after` (a forced start overrides them); `Edit` of `after` refuses loops (`Error::Cycle`).
- `power::{Watcher, WhenDone, Action, Scope, Power, Logind, Inhibitor}` (countdown, conditions, failure blocks unless `even_failed`); `run::{RunSpec, Vars, run}`.
- Not done: no UI or app wiring for these, the `Grid` is not applied to the limiter, `start_at` stays on `Hold::Until` (asleep time not counted). Tests: `docs/tests/S021-queues-schedule-power.md`.