feat(scheduled-jobs): refuse every write while OMV's cron module has changes pending
driver / lint (pull_request) Successful in 18s
driver / standard (pull_request) Successful in 22s
driver / types (pull_request) Failing after 1m19s
driver / test (3.13) (pull_request) Failing after 58s
driver / test (3.12) (pull_request) Failing after 1m4s
driver / lowest (pull_request) Failing after 23s
driver / build (pull_request) Successful in 31s
driver / security (pull_request) Failing after 1m12s
CI / driver (pull_request) Failing after 2m32s
driver / publish (pull_request) Skipped

An apply of the cron module would put someone's half-finished web-UI edit
live along with ours. Decided 2026-11-03 (NetOrk/netork#1933).

Refs #18
This commit is contained in:
Christian Manivong committed 2026-11-03 07:33:55 +01:00
1 parent cc00c225a2
commit f1524b8349
3 files changed
+32 -3

No files matched your search

+3 -1
View File
@@ -15,7 +15,9 @@ All notable changes to this driver. The format follows
through `Exec.getOutput` (stopped after 300 s), and an application's job is made with
`Cron.set` and removed with `Cron.delete` -- an OMV job like any other, its comment
`napalm-scheduled-job: <name> <description>`. Each write applies the `cron` module alone,
so changes pending in the web UI for other modules stay pending. The cron files OMV
so changes pending in the web UI for other modules stay pending; while the `cron` module
itself has changes pending, every write is refused, or the apply would put them live too.
The cron files OMV
generates (`/etc/cron.d/openmediavault-*`, `/etc/cron.hourly/openmediavault-flushmailq`,
`/etc/cron.{daily,weekly}/openmediavault-apticron`,
`/etc/cron.daily/openmediavault-samba-recycle`) are `platform` and only run: the Linux path