Skip to main content

check_scripts

Function check_scripts 

Source
pub fn check_scripts(
    path: &Path,
    config: &Config,
) -> Result<Option<Vec<ParsedFile>>, AppError>
Expand description

A script root’s schedr.toml files read and checked, as a worker reads them (M4.9): for a path in a configured script root (its scripts never imported, as a DAG check would), or outside the configured roots a schedr.toml or a directory holding one. The root is the configured script root, else the directory (the file’s own for a file). None for a DAG check: a path in a configured DAG root, or anything else.

§Errors

AppError::BadArgument if the path doesn’t exist or can’t be scanned, or is a file in a script root that isn’t a schedr.toml (no DAG file there), or a schedr.toml in a DAG root (read only in script roots).