Skip to main content

Module jobs

Module jobs 

Source
Expand description

schedr.toml: the scripts a script root declares (archive/PROJECT.md, Plain script delivery; decisions 292-300). Read and checked here, in Rust, by the agent alone (decision 293): every key known, unknown ones an error. A declaration with a schedule (schedule, every or once) is a standalone job, a one-task DAG whose ID is its reference (etl:team_a/schedr.toml#report_daily); one without is a script for DAGs only (296).

Structs§

Declaration
A checked declaration.
Given
The task settings a declaration gives itself: a ScriptOperator takes these, and the DAG’s defaults for the others.
Schedule
A standalone job’s DAG-level settings.
ScriptRoot
A script root as a parse sees it: where it is configured, and the copy of its code the worker reports (decision 102).
Source
Where a schedr.toml is.

Constants§

FILE_NAME
A script configuration file’s name.
INVALID_JOBS_EXCEPTION
The exception of a schedr.toml that can’t be read or checked, shown as its import error.

Functions§

is_config
Whether a path in a root is a schedr.toml.
lookup
The declaration a ScriptOperator refers to (decision 293): reference is <root>:<path>#<name> or /abs/path/schedr.toml#<name>, read from the copies of this worker’s script roots scripts. Returns the script root it names, if it names one (the DAG root then uses it, decision 304, found or not), and the declaration or why it can’t be used.
message
The problems of a schedr.toml as one import error’s message, a line each.
read
Reads and checks a schedr.toml: its declarations in the order written, or every problem found, each naming the job and key.
read_root
The schedr.toml files wanted of script root root, whose files (files, paths with /) are in dir: a parsed file each, its standalone jobs as DAGs, or its problems as its import error. With interpreters (a local check’s configuration), a job whose interpreter isn’t one of them gets a warning: a worker without it rejects the job’s tasks.
stays_inside
Whether a path relative to a root stays in it: only names going down (. aside).