Expand description
The configuration sections and their defaults.
Only the keys the first milestones need exist so far; sections grow additively. Unknown keys are an error, so a typo never passes silently.
Structs§
- Auth
Section [webserver.auth]and[ui.auth]: who the user is (see archive/PROJECT.md, Authentication: as little as possible in schedr). The name is recorded on commands, never used to allow or deny anything; there are no roles.- Backfill
Section [backfill]: backfills, a run per fire time of a range (schedr runs backfill, decisions 363, 400-404).- Channel
Config - A server channel (
[notifications.channels.<name>], decision 424): itstype, and the keys that type takes (the master refuses another type’s). - Config
- The whole configuration, after loading and validation.
- Dags
Section [dags].- Database
Section [database].- Events
Section [events]: events posted through the API (POST /api/v1/events, decision 354).- Grpc
Section [grpc]: the link between the master and its workers. Set the same on both: each end reads its own.- Hidden
Limits - Fixed limits, like
Timingsnot configuration: onlySCHEDR_HIDDEN__*changes them. - Interpreter
- An
[interpreters]entry: a plain path, or a table with fork server settings. - LogSection
[log].- Mapping
Section [mapping].- Master
Section [master].- Notifications
Section [notifications]: messages the master sends to channels when runs and tasks end, and those tasks send themselves (decisions 408-429).- OpsSection
[ops].- Retention
Section [retention]: how long the database keeps what runs left behind (decisions 430-435). The master deletes what is older every hour, in batches; never an unfinished run, nor a DAG’s newest scheduled run, its newest run, or the last that endedsuccessorfailed.- Scripts
Section [scripts].- Secret
Storage Config [secret_storage.<name>]: one secret storage. ItsDebughides the token.- Secret
Storage Section [secret_storage]: where a worker’s tasks get their secrets (only workers fetch them; see archive/PROJECT.md, Secret storage). Each storage is a table of its own, named by its key ([secret_storage.vault]); standalone always has thedbstorage besides them.- Sensors
Section [sensors]: wait steps (@sensor,@sensor.poke).- Smtp
Section [notifications.smtp]: the mail server email channels send through (decisions 411, 426).- Timings
- The timings that aren’t a user’s to choose, each tuned, tied to others, or what the cluster’s
correctness depends on (a wrong value can run tasks twice, or lose a healthy worker): fixed,
not configuration. Only
SCHEDR_HIDDEN__*changes them, which is what the tests do, to run in seconds; anyone else does so at their own risk. - TlsSection
[tls]: certificates are PEM files (mounted from Kubernetes Secrets), read again when they change.- Triggers
Section [triggers]: event triggers (@trigger,@trigger.poke).- UiDeployment
- A deployment
schedr uishows ([[ui.deployments]]). - UiSection
[ui]: the web UI.schedr uiis a role of its own that talks only to webservers’ REST APIs, one per deployment indeployments(one the common case);schedr standaloneserves the UI too, next to its API, over its own deployment (deploymentsis not used there).- Vault
Auth Config auth = { ... }of a Vault storage.- Watchers
Section [watchers]: the worker’s watcher hosts, which run wait steps.- Webserver
Section [webserver].- Worker
Section [worker].
Enums§
- Age
- How long something is kept: a duration (
"90d") or"forever". - Auth
Mode [webserver.auth] mode,[ui.auth] mode.- Channel
Kind - A server channel’s type.
- LogFormat
[log] format.- Secret
Storage Type - A secret storage’s kind.
- SmtpTls
- How an SMTP connection is secured.
- TlsMode
[tls] mode.- Vault
Auth Method - How the agent logs in to Vault.
Constants§
- BUILTIN_
PYTHON - The executable behind the built-in
pythoninterpreter when[interpreters]doesn’t define one. - BUILTIN_
PYTHON_ ORIGIN - How the built-in
pythoninterpreter was chosen when nothing looked further. - DEFAULT_
DAG_ INTERPRETER - The interpreter name used for parsing DAGs and running Python tasks unless configured.
- HIDDEN_
PREFIX - The start of the environment variables that set a timing of
Timings:SCHEDR_HIDDEN__MASTER__TICK_INTERVAL=100ms. Not configuration, and unsupported: the tests need them, and anyone may experiment at their own risk. The name keeps them from being set by accident; a file can’t set them, and each one set is warned about.
Functions§
- config_
schema - The JSON Schema of the configuration file: every key with its doc comment, type and default (the configuration reference in the documentation is generated from it).
- log_
mode [worker] log_modeas a mode: octal, within 0644, with the owner’s read and write;Nonefor one that isn’t.- url_
has_ password - Whether a URL has a password: in its user-info part (
scheme://user:password@host) or as a query parameter naming one (?password=..., any case, the name percent-decoded; B203).