Configuration¶
Every key of the configuration file, generated from the code. A key is set in the TOML file (--config, else SCHEDR_CONFIG_FILE, else /etc/schedr/config.toml) or by the environment variable shown with it; flags win over the environment, which wins over the file. Durations are written like 500ms, 30s, 5m, 1h30m or 2d; sizes like 512B, 64KiB, 4MiB or 1GiB; paths as a list, or in the environment as one string separated by :. Unknown keys are an error. Secrets (a database URL with a password) come only from the environment.
[interpreters]¶
Interpreter names and their executables.
Key |
Type |
Description |
|---|---|---|
any name |
string or |
How an interpreter is written in TOML. |
[backfill]¶
Backfills (schedr runs backfill).
Key |
Type |
Default |
Description |
|---|---|---|---|
|
integer |
|
The most fire times one backfill’s range may have, those already run included (so it is also the most runs it creates); a bigger range is refused, saying to split it. At least 1. Environment: |
[dags]¶
Where DAG files are and how they are parsed.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
The |
|
integer |
|
How many DAG files are parsed at once, each in a process of its own. Capped at the cores the agent may use; 1 parses them one at a time. Environment: |
|
duration |
|
How long one DAG file may take to import before the agent stops its runner. Environment: |
|
paths |
none |
The DAG directories ( |
|
duration |
|
How often the roots are scanned for changes. Environment: |
|
table |
none |
Root renames: name → one of the |
|
duration |
|
How long a root must stay unchanged before its new content hash is computed. Environment: |
[database]¶
The state database.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
boolean |
|
Whether the writes announce what changed, for the web UI’s live pages (triggers in the database; about 2-3% of the master’s throughput under heavy load, measured by stress scenarios 15 and 15b). Applied by |
|
boolean |
|
Whether the master listens for new commands on Postgres ( |
|
string |
not set |
A connection for the master’s listening only, straight to Postgres past a pooler, so commands stay immediate behind one; the main URL when not set. With a password, it must come from |
|
string |
not set |
The connection URL ( |
[events]¶
Events posted through the API (decision 354).
Key |
Type |
Default |
Description |
|---|---|---|---|
|
size |
|
The largest event’s data, as JSON; a bigger one is refused ( |
[grpc]¶
The link between the master and its workers, both ends.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
size |
|
The largest message either end takes from the other: a root’s parse upload (every DAG it defines, in one message) or a |
[log]¶
Schedr’s own logs.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
one of |
|
The output format. |
|
string |
|
The level, with per-module filters in the |
[mapping]¶
Mapped tasks (.expand()).
Key |
Type |
Default |
Description |
|---|---|---|---|
|
integer |
|
The most instances a mapped task may have in a run; more fail the task, saying so (like Airflow’s |
[master]¶
The master’s port and timing.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
IP address |
|
The address |
|
duration |
|
The time between SIGTERM and SIGKILL when an attempt is cancelled. Environment: |
|
duration |
|
How long a task’s code may be missing on every eligible worker (git-sync not there yet) before the task is |
|
integer |
|
The gRPC port workers connect to. Environment: |
|
duration |
|
How long a worker has for a parse job before it goes to another worker (or the same one again, if no other has that code). Raise it for DAG folders so large that parsing one takes longer; each file still has |
|
boolean |
|
Whether rounds visit only busy DAGs and the quiet ones they wake (a run queued or ended, a command, a new version, a fire time coming up), instead of every DAG every round. |
[notifications]¶
What the master sends when runs and tasks end (decisions 408-429).
Key |
Type |
Default |
Description |
|---|---|---|---|
|
string |
not set |
A PEM file of CAs trusted for notifications besides the system’s (a private CA, such as |
|
table |
none |
The server’s channels, by name ( |
|
list of strings |
none |
The URLs a DAG’s own webhook ( |
|
list of strings |
|
The events a channel named without events is told of ( |
|
duration |
|
How long the master keeps retrying a notification it can’t deliver; then it is logged as an error, counted and dropped. Environment: |
|
integer |
|
The most notifications one task attempt may send itself ( |
|
duration |
|
The limit for one delivery (a POST); past it, the delivery failed and is retried. Environment: |
|
string |
not set |
The UI’s address ( |
[notifications.smtp]¶
The mail server every email channel sends through.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
string |
not set |
The sender ( |
|
string |
not set |
The server’s host; none: no email channel can be configured. Environment: |
|
string |
not set |
Its password: only from |
|
integer |
|
Its port: 587 (submission, STARTTLS) by default; 465 for |
|
one of |
|
How the connection is secured: |
|
string |
not set |
The user to log in as; none: no login. Environment: |
[ops]¶
The ops port (health and metrics).
Key |
Type |
Default |
Description |
|---|---|---|---|
|
IP address |
|
The address the ops port listens on (all interfaces by default; |
|
integer |
|
The plain-HTTP port for |
[retention]¶
How long the database keeps runs, outputs, events and commands (decisions 430-435).
Key |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Commands (the audit trail) decided longer ago than this are deleted, whatever their runs’ age. Environment: |
|
string |
not set |
Events triggers found and events posted through the API older than this are deleted; the same as |
|
string |
not set |
A finished run’s outputs older than this are deleted, its tasks and their outcomes kept; the same as |
|
string |
|
Finished runs older than this (by their end) are deleted with their tasks, attempts and outputs; |
[scripts]¶
Where plain scripts are.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
paths |
none |
The script directories ( |
|
table |
none |
Root renames: name → one of the |
[secret_storage]¶
Where a worker’s tasks get their secrets (workers only).
Key |
Type |
Default |
Description |
|---|---|---|---|
|
string |
not set |
The storage |
|
integer |
|
Values shorter than this many characters aren’t masked in logs and outputs (masking |
[sensors]¶
Wait steps (@sensor, @sensor.poke).
Key |
Type |
Default |
Description |
|---|---|---|---|
|
duration |
|
How long a wait step without a |
[tls]¶
MTLS on the internal links (master ↔ worker, webserver → worker logs).
Key |
Type |
Default |
Description |
|---|---|---|---|
|
string |
not set |
The CA certificates peers’ certificates must be signed by. Environment: |
|
string |
not set |
This role’s certificate (chain). Environment: |
|
string |
not set |
This role’s private key. Environment: |
|
one of |
|
Whether schedr does mTLS itself ( |
|
duration |
|
How often the files are read again for a change. Environment: |
|
string |
|
The name a webserver expects in |
|
string |
|
The name the webserver expects in workers’ certificates, whatever address it reaches them at. Environment: |
[triggers]¶
Event triggers.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
integer |
|
How many errors in a row make a trigger |
|
integer |
|
How many queued event runs a DAG may have before its trigger is stopped. It starts again from its bookmark once they have all started: the events wait in the source, not in schedr’s database. Environment: |
[ui]¶
The web UI (schedr ui, and the one schedr standalone serves).
Key |
Type |
Default |
Description |
|---|---|---|---|
|
IP address |
|
The address |
|
list of |
none |
The deployments |
|
string |
|
The documentation site served at |
|
integer |
|
The HTTP port of |
[ui.auth]¶
Who the person using the UI is (as [webserver.auth]).
Key |
Type |
Default |
Description |
|---|---|---|---|
|
boolean |
|
|
|
boolean |
|
|
|
string |
not set |
|
|
one of |
|
How the user is known. |
|
string |
not set |
|
[watchers]¶
Wait steps (@sensor, @sensor.poke).
Key |
Type |
Default |
Description |
|---|---|---|---|
|
duration |
|
How long a wait step may hold its host’s event loop before reaching an |
|
size |
|
The memory all of a worker’s hosts may use together. Past it the largest is killed: its wait steps end |
|
integer |
|
After how many calls in a row that each ran past its |
|
integer |
|
How many wait steps a worker runs at once, apart from |
|
integer |
|
After how many times in a row a wait step gets its host killed it is switched off: its attempts then fail at once, until it succeeds on new code or |
[webserver]¶
The REST API (and later the UI).
Key |
Type |
Default |
Description |
|---|---|---|---|
|
IP address |
|
The address |
|
duration |
|
How long a connection test may take when the request doesn’t say. Raise it for connections slow to open; |
|
integer |
|
The HTTP port of the REST API (and later the UI). Environment: |
|
integer |
|
The port serving the whole API to |
|
boolean |
|
In |
|
string |
not set |
A file holding the token |
|
duration |
|
How long a whole request to a worker may take, to fetch a task’s log. Raise it when large logs come slowly; a user waits this long at most for a worker that hangs. Environment: |
[webserver.auth]¶
Who the user is.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
boolean |
|
|
|
boolean |
|
|
|
string |
not set |
|
|
one of |
|
How the user is known. |
|
string |
not set |
|
[worker]¶
This worker’s identity, capacity and data directory.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
duration |
not set |
How long one try of a cleanup may run, for a task that doesn’t set |
|
string |
not set |
Where commands’ connection files go while their attempts run ( |
|
string |
not set |
Where task logs, the journal ( |
|
duration |
|
For a task still running when a drain’s time is up: from its SIGTERM to its SIGKILL (the drain’s own, instead of |
|
duration |
|
How long a fork server whose preloaded library fails to import is retried (with backoff, from the first failure), for what isn’t ready when the pod starts (a sidecar’s network, a mount); |
|
duration |
|
How long a fork server may take to import its preloaded libraries. Raise it for large preload lists or slow storage; until it is up, tasks are spawned instead. Environment: |
|
string |
not set |
The worker’s ID, stable across restarts; the host name when not set. Environment: |
|
string |
not set |
The host the webserver reaches the log endpoint at, sent to the master (e.g. the pod’s DNS name through a headless Service); the host name when not set. Environment: |
|
IP address |
|
The address the log endpoint listens on (all interfaces by default; |
|
size |
not set |
Beyond this many bytes of logs the oldest are deleted; no limit when not set. Environment: |
|
string |
|
The mode of the log files the worker creates (task, attempt, parse and watcher-host logs), in octal: owner-only |
|
integer |
|
The log endpoint’s port (0: a free one). Environment: |
|
duration |
|
Task logs older than this are deleted. Environment: |
|
string |
not set |
The master’s gRPC URL, e.g. |
|
size |
not set |
Each task’s memory budget; when not set, (the pod’s limit − 10 %) ÷ slots. Environment: |
|
percentage or size |
not set |
The part of the pod’s memory limit kept out of task budgets (for schedr’s own process): a percentage ( |
|
list of strings |
none |
Agent environment variables passed to tasks besides the allow-list. Environment: |
|
list of strings |
none |
The queues served; none serves |
|
duration |
|
How long one try of a resource’s cleanup may run, for one that doesn’t set |
|
duration |
|
How long a started Python runner has to say hello. Raise it where the interpreter is slow to start (cold storage, a loaded machine); a runner that can’t start is noticed this much later. Environment: |
|
integer |
|
Task slots. Environment: |
|
duration |
|
How long running tasks get when the worker is asked to stop (SIGTERM): match the pod’s |