Reference
jobs feature
What it doesPermalink to What it does#
Scheduled jobs. A job scheduler feature implements it.
This is an abstract feature type: it has no instances of its own. Feature types that implement it receive what is sent to it.
Use itPermalink to Use it#
Nothing uses this type directly. Features send items to it, and the feature that implements it receives them. This part of a system configuration sends one:
Example: feature-jobs-example
(import (vessel system))
;; A nightly job. cron, from the server features, receives it.
(system-configuration
features:
(cons (simple-feature 'backups jobs-feature
(list (scheduled-job name: "nightly-backup"
schedule: "30 2 * * *"
argv: '("/bin/sh" "/etc/backup.sh"))))
%server-features))
Verified
A real system.sgl also sets the fields this example leaves out: the host name, kernel, boot loader and file systems. Every time the manual is built, it composes this configuration with Vessel's code and checks what the feature receives.
OptionsPermalink to Options#
None. This feature type takes no configuration.
What it addsPermalink to What it adds#
It sends nothing to other feature types.
What it receivesPermalink to What it receives#
scheduled-job: A job, claimed by its name.
Used inPermalink to Used in#
No page refers to it yet.