Expand description
Where configuration comes from: the file, SCHEDR_CONFIG__* environment variables, the
short aliases, and command-line flags (see archive/PROJECT.md, Configuration).
Every source is a figment provider whose metadata names the exact origin of a value
(the file, SCHEDR_CONFIG__OPS__PORT, SCHEDR_DAG_PATH, --ops-port), so error messages
say where a bad value came from.
Structs§
- File
Source - The configuration file’s contents, with its path for messages.
- Override
- A configuration value given on the command line, e.g.
--ops-port 9100.
Enums§
- Config
File - Which configuration file to read.
- Override
Value - What a command-line flag gives.
- Source
Error - Why an environment variable can’t be used as configuration.
Constants§
- ALIASES
- Short aliases: environment variable → configuration key.
- CONFIG_
FILE_ ENV - The environment variable naming the configuration file.
- DEFAULT_
CONFIG_ FILE - The configuration file read when neither
--confignorSCHEDR_CONFIG_FILEnames one. - ENV_
PREFIX - The prefix of environment variables that mirror the configuration file.
Functions§
- config_
file - Chooses the configuration file: the
--configflag, thenSCHEDR_CONFIG_FILE, thenDEFAULT_CONFIG_FILE. - env_key
- The configuration key of a
SCHEDR_CONFIG__variable (SCHEDR_CONFIG__DAGS__POLL_INTERVAL→dags.poll_interval), orNonefor other variables.