Expand description
Configuration loading and validation for schedr (TOML file, environment variables, flags).
See archive/PROJECT.md, Configuration: one TOML file and/or SCHEDR_CONFIG__* environment
variables mirroring its structure, with SCHEDR_DAG_PATH / SCHEDR_SCRIPT_PATH as short
aliases; precedence flags > environment > file. Loading is pure: the caller reads the file
and the process environment and passes them in.
Re-exports§
pub use config::AuthMode;pub use config::AuthSection;pub use config::Config;pub use config::DagsSection;pub use config::DatabaseSection;pub use config::Interpreter;pub use config::LogFormat;pub use config::LogSection;pub use config::MappingSection;pub use config::OpsSection;pub use config::ScriptsSection;pub use config::TlsMode;pub use config::TlsSection;pub use config::config_schema;pub use config::url_has_password;pub use loader::ConfigError;pub use loader::load;pub use roots::PathList;pub use roots::Root;pub use roots::RootError;pub use sources::ConfigFile;pub use sources::FileSource;pub use sources::Override;pub use sources::OverrideValue;pub use sources::SourceError;pub use sources::config_file;pub use units::MemoryReserve;pub use units::UnitError;pub use units::format_duration;pub use units::format_reserve;pub use units::format_size;pub use units::parse_duration;pub use units::parse_reserve;pub use units::parse_size;
Modules§
- config
- The configuration sections and their defaults.
- loader
- Loading the configuration: layering the sources, parsing, and validating.
- masked
- A configuration as it may be shown or sent (decision 122, the user’s requirement of 2026-10-31): masked by the node itself before it leaves the process, so no secret is stored or sent in clear.
- roots
- Path lists (
SCHEDR_DAG_PATH,SCHEDR_SCRIPT_PATH) and the roots made from them. - sources
- Where configuration comes from: the file,
SCHEDR_CONFIG__*environment variables, the short aliases, and command-line flags (see archive/PROJECT.md, Configuration). - units
- Durations (
"30s","5m","1h30m") and sizes ("4MiB") in configuration values.