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
ScriptOperatortakes these, and the DAG’s defaults for the others. - Schedule
- A standalone job’s DAG-level settings.
- Script
Root - 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.tomlis.
Constants§
- FILE_
NAME - A script configuration file’s name.
- INVALID_
JOBS_ EXCEPTION - The exception of a
schedr.tomlthat 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
ScriptOperatorrefers to (decision 293):referenceis<root>:<path>#<name>or/abs/path/schedr.toml#<name>, read from the copies of this worker’s script rootsscripts. 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.tomlas 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.tomlfileswantedof script rootroot, whose files (files, paths with/) are indir: a parsed file each, its standalone jobs as DAGs, or its problems as its import error. Withinterpreters(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).