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 InterpreterTable

How an interpreter is written in TOML. python = "/usr/bin/python3". [interpreters.etl-venv] with path, fork_server, preload. Environment: SCHEDR_CONFIG__INTERPRETERS__<NAME> (the plain path form).

[backfill]

Backfills (schedr runs backfill).

Key

Type

Default

Description

max_runs

integer

1000

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: SCHEDR_CONFIG__BACKFILL__MAX_RUNS.

[dags]

Where DAG files are and how they are parsed.

Key

Type

Default

Description

interpreter

string

python

The [interpreters] entry used for parsing and for Python tasks. Environment: SCHEDR_CONFIG__DAGS__INTERPRETER.

parse_concurrency

integer

4

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: SCHEDR_CONFIG__DAGS__PARSE_CONCURRENCY.

parse_file_timeout

duration

1m

How long one DAG file may take to import before the agent stops its runner. Environment: SCHEDR_CONFIG__DAGS__PARSE_FILE_TIMEOUT.

path

paths

none

The DAG directories (SCHEDR_DAG_PATH). Environment: SCHEDR_CONFIG__DAGS__PATH.

poll_interval

duration

30s

How often the roots are scanned for changes. Environment: SCHEDR_CONFIG__DAGS__POLL_INTERVAL.

roots

table

none

Root renames: name → one of the path entries. Environment: SCHEDR_CONFIG__DAGS__ROOTS__<NAME>.

settle_time

duration

5s

How long a root must stay unchanged before its new content hash is computed. Environment: SCHEDR_CONFIG__DAGS__SETTLE_TIME.

[database]

The state database.

Key

Type

Default

Description

change_notifications

boolean

true

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 schedr db migrate and --migrate, not by a running master. Off: the pages refresh every refresh_interval instead. Environment: SCHEDR_CONFIG__DATABASE__CHANGE_NOTIFICATIONS.

notifications

boolean

true

Whether the master listens for new commands on Postgres (LISTEN), applying them at once rather than at its next round. A connection pooler in transaction mode (PgBouncer or similar) can’t carry it: the master checks the connection it listens through, and behind such a pooler it warns, turns notifications off and polls. Off: polling only; the webserver doesn’t notify either. Environment: SCHEDR_CONFIG__DATABASE__NOTIFICATIONS.

notifications_url

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 SCHEDR_CONFIG__DATABASE__NOTIFICATIONS_URL, never the file. Environment: SCHEDR_CONFIG__DATABASE__NOTIFICATIONS_URL.

url

string

not set

The connection URL (sqlite:... or postgres://...). A URL with a password must come from SCHEDR_CONFIG__DATABASE__URL, never the file (see archive/PROJECT.md, Configuration: secrets). Environment: SCHEDR_CONFIG__DATABASE__URL.

[events]

Events posted through the API (decision 354).

Key

Type

Default

Description

max_size

size

1MiB

The largest event’s data, as JSON; a bigger one is refused (413). Environment: SCHEDR_CONFIG__EVENTS__MAX_SIZE.

[grpc]

The link between the master and its workers, both ends.

Key

Type

Default

Description

max_message_size

size

64MiB

The largest message either end takes from the other: a root’s parse upload (every DAG it defines, in one message) or a Finished with its output, to the master; an assignment carrying another DAG’s run result (wait_for=), to a worker. A larger upload is refused and the worker logs it; a larger message on the stream ends it; a run result too big for it fails the call that would carry it. From 4 MiB (gRPC’s default) to 1 GiB. Environment: SCHEDR_CONFIG__GRPC__MAX_MESSAGE_SIZE.

[log]

Schedr’s own logs.

Key

Type

Default

Description

format

one of auto, json, text

auto

The output format. auto: JSON when stdout isn’t a terminal, readable text when it is. json: Always JSON. text: Always readable text. Environment: SCHEDR_CONFIG__LOG__FORMAT.

level

string

info

The level, with per-module filters in the RUST_LOG style. Environment: SCHEDR_CONFIG__LOG__LEVEL.

[mapping]

Mapped tasks (.expand()).

Key

Type

Default

Description

max_instances

integer

1024

The most instances a mapped task may have in a run; more fail the task, saying so (like Airflow’s max_map_length). At least 1. Environment: SCHEDR_CONFIG__MAPPING__MAX_INSTANCES.

[master]

The master’s port and timing.

Key

Type

Default

Description

bind

IP address

0.0.0.0

The address schedr master listens on (all interfaces by default; schedr standalone always listens on 127.0.0.1). Environment: SCHEDR_CONFIG__MASTER__BIND.

cancel_grace

duration

30s

The time between SIGTERM and SIGKILL when an attempt is cancelled. Environment: SCHEDR_CONFIG__MASTER__CANCEL_GRACE.

code_wait

duration

10m

How long a task’s code may be missing on every eligible worker (git-sync not there yet) before the task is unschedulable. Environment: SCHEDR_CONFIG__MASTER__CODE_WAIT.

grpc_port

integer

8070

The gRPC port workers connect to. Environment: SCHEDR_CONFIG__MASTER__GRPC_PORT.

parse_job_timeout

duration

10m

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 [dags] parse_file_timeout. Environment: SCHEDR_CONFIG__MASTER__PARSE_JOB_TIMEOUT.

quiet_dags

boolean

true

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. false visits every DAG every round. Environment: SCHEDR_CONFIG__MASTER__QUIET_DAGS.

[notifications]

What the master sends when runs and tasks end (decisions 408-429).

Key

Type

Default

Description

ca_file

string

not set

A PEM file of CAs trusted for notifications besides the system’s (a private CA, such as OpenShift’s service CA). Environment: SCHEDR_CONFIG__NOTIFICATIONS__CA_FILE.

channels

table

none

The server’s channels, by name ([notifications.channels.ops-slack]): open to every DAG by its name. Environment: SCHEDR_CONFIG__NOTIFICATIONS__CHANNELS__<NAME>.

dag_urls

list of strings

none

The URLs a DAG’s own webhook (WebhookChannel) may post to: its URL must start with one of them (https://relay.example.com/); empty: DAGs define none (decision 425). Environment: SCHEDR_CONFIG__NOTIFICATIONS__DAG_URLS.

default_events

list of strings

["RUN_FAILED"]

The events a channel named without events is told of (RUN_FAILED, …). Environment: SCHEDR_CONFIG__NOTIFICATIONS__DEFAULT_EVENTS.

give_up_after

duration

1d

How long the master keeps retrying a notification it can’t deliver; then it is logged as an error, counted and dropped. Environment: SCHEDR_CONFIG__NOTIFICATIONS__GIVE_UP_AFTER.

max_per_attempt

integer

100

The most notifications one task attempt may send itself (send); past it, send fails. At least 1. Environment: SCHEDR_CONFIG__NOTIFICATIONS__MAX_PER_ATTEMPT.

timeout

duration

10s

The limit for one delivery (a POST); past it, the delivery failed and is retried. Environment: SCHEDR_CONFIG__NOTIFICATIONS__TIMEOUT.

ui_url

string

not set

The UI’s address (https://schedr.example.com), the base of the links in messages; none: messages carry no links. Environment: SCHEDR_CONFIG__NOTIFICATIONS__UI_URL.

[notifications.smtp]

The mail server every email channel sends through.

Key

Type

Default

Description

from

string

not set

The sender (schedr <schedr@example.com>). Environment: SCHEDR_CONFIG__NOTIFICATIONS__SMTP__FROM.

host

string

not set

The server’s host; none: no email channel can be configured. Environment: SCHEDR_CONFIG__NOTIFICATIONS__SMTP__HOST.

password

string

not set

Its password: only from SCHEDR_CONFIG__NOTIFICATIONS__SMTP__PASSWORD, never the file. Environment: SCHEDR_CONFIG__NOTIFICATIONS__SMTP__PASSWORD.

port

integer

587

Its port: 587 (submission, STARTTLS) by default; 465 for tls = "tls". Environment: SCHEDR_CONFIG__NOTIFICATIONS__SMTP__PORT.

tls

one of starttls, tls, none

starttls

How the connection is secured: starttls (upgrade, required), tls (TLS from the start) or none (plain text: a local relay only). starttls: A plain connection upgraded with STARTTLS, which the server must offer. tls: TLS from the start (port 465). none: No TLS: for a relay on the same host or network only. Environment: SCHEDR_CONFIG__NOTIFICATIONS__SMTP__TLS.

username

string

not set

The user to log in as; none: no login. Environment: SCHEDR_CONFIG__NOTIFICATIONS__SMTP__USERNAME.

[ops]

The ops port (health and metrics).

Key

Type

Default

Description

bind

IP address

0.0.0.0

The address the ops port listens on (all interfaces by default; schedr standalone uses its --listen address, else 127.0.0.1). Environment: SCHEDR_CONFIG__OPS__BIND.

port

integer

8090

The plain-HTTP port for /healthz, /readyz and /metrics. Environment: SCHEDR_CONFIG__OPS__PORT.

[retention]

How long the database keeps runs, outputs, events and commands (decisions 430-435).

Key

Type

Default

Description

commands

string

365d

Commands (the audit trail) decided longer ago than this are deleted, whatever their runs’ age. Environment: SCHEDR_CONFIG__RETENTION__COMMANDS.

events

string

not set

Events triggers found and events posted through the API older than this are deleted; the same as runs by default. Environment: SCHEDR_CONFIG__RETENTION__EVENTS.

outputs

string

not set

A finished run’s outputs older than this are deleted, its tasks and their outcomes kept; the same as runs by default. Longer than runs changes nothing. Environment: SCHEDR_CONFIG__RETENTION__OUTPUTS.

runs

string

90d

Finished runs older than this (by their end) are deleted with their tasks, attempts and outputs; "forever" keeps them. Environment: SCHEDR_CONFIG__RETENTION__RUNS.

[scripts]

Where plain scripts are.

Key

Type

Default

Description

path

paths

none

The script directories (SCHEDR_SCRIPT_PATH). Environment: SCHEDR_CONFIG__SCRIPTS__PATH.

roots

table

none

Root renames: name → one of the path entries. Environment: SCHEDR_CONFIG__SCRIPTS__ROOTS__<NAME>.

[secret_storage]

Where a worker’s tasks get their secrets (workers only).

Key

Type

Default

Description

default

string

not set

The storage secrets['...'] means: one configured below, or db in standalone. Unset: the only storage configured, else db in standalone (none on a worker). Environment: SCHEDR_CONFIG__SECRET_STORAGE__DEFAULT.

min_mask_length

integer

5

Values shorter than this many characters aren’t masked in logs and outputs (masking 1 would mangle them); the task’s log says which. Environment: SCHEDR_CONFIG__SECRET_STORAGE__MIN_MASK_LENGTH.

[sensors]

Wait steps (@sensor, @sensor.poke).

Key

Type

Default

Description

default_max_wait

duration

1d

How long a wait step without a max_wait of its own waits, before it ends with the TimedOut outcome. Environment: SCHEDR_CONFIG__SENSORS__DEFAULT_MAX_WAIT.

[tls]

MTLS on the internal links (master ↔ worker, webserver → worker logs).

Key

Type

Default

Description

ca

string

not set

The CA certificates peers’ certificates must be signed by. Environment: SCHEDR_CONFIG__TLS__CA.

cert

string

not set

This role’s certificate (chain). Environment: SCHEDR_CONFIG__TLS__CERT.

key

string

not set

This role’s private key. Environment: SCHEDR_CONFIG__TLS__KEY.

mode

one of app, mesh

app

Whether schedr does mTLS itself (app) or leaves it to a mesh (mesh). app: schedr’s own mTLS on every internal link. mesh: Plain traffic: a service mesh (e.g. Istio) provides mTLS between the pods. Environment: SCHEDR_CONFIG__TLS__MODE.

reload_interval

duration

30s

How often the files are read again for a change. Environment: SCHEDR_CONFIG__TLS__RELOAD_INTERVAL.

ui_name

string

schedr-ui

The name a webserver expects in schedr ui’s certificate on its [webserver] ui_port (decision 36: only a caller so proven may pass a user’s name on). Environment: SCHEDR_CONFIG__TLS__UI_NAME.

worker_name

string

schedr-worker

The name the webserver expects in workers’ certificates, whatever address it reaches them at. Environment: SCHEDR_CONFIG__TLS__WORKER_NAME.

[triggers]

Event triggers.

Key

Type

Default

Description

failing_after

integer

5

How many errors in a row make a trigger failing. Environment: SCHEDR_CONFIG__TRIGGERS__FAILING_AFTER.

max_queued_events

integer

1000

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: SCHEDR_CONFIG__TRIGGERS__MAX_QUEUED_EVENTS.

[ui]

The web UI (schedr ui, and the one schedr standalone serves).

Key

Type

Default

Description

bind

IP address

0.0.0.0

The address schedr ui listens on (all interfaces by default). Environment: SCHEDR_CONFIG__UI__BIND.

deployments

list of UiDeployment

none

The deployments schedr ui shows, in this order: each a name (shown, and in the UI’s URLs) and its webserver’s URL. Environment: SCHEDR_CONFIG__UI__DEPLOYMENTS.

docs_dir

string

/usr/share/schedr/docs

The documentation site served at /docs (the image’s); served only when the directory exists, "" for none. Environment: SCHEDR_CONFIG__UI__DOCS_DIR.

port

integer

8082

The HTTP port of schedr ui. Environment: SCHEDR_CONFIG__UI__PORT.

[ui.auth]

Who the person using the UI is (as [webserver.auth]).

Key

Type

Default

Description

allow_remote

boolean

false

proxy_header beyond a loopback address: everything reaching it comes through the proxy (anything reaching it around the proxy could name any user: refused without it). Environment: SCHEDR_CONFIG__UI__AUTH__ALLOW_REMOTE.

behind_tls_proxy

boolean

false

basic beyond a loopback address: TLS is ended by a proxy in front (passwords would otherwise cross the network in the clear: refused without it). Environment: SCHEDR_CONFIG__UI__AUTH__BEHIND_TLS_PROXY.

identity_header

string

not set

none: a header naming the user, recorded if present (e.g. x-forwarded-user, set by a mesh from its token); proxy_header: the header the SSO proxy sets, required (x-forwarded-user when not set). Environment: SCHEDR_CONFIG__UI__AUTH__IDENTITY_HEADER.

mode

one of none, proxy_header, basic

none

How the user is known. none: Whoever reaches it: access is decided in front (a mesh, the namespace). proxy_header: An SSO proxy in front logs users in and names them in a header. basic: HTTP Basic against users_file. Environment: SCHEDR_CONFIG__UI__AUTH__MODE.

users_file

string

not set

basic: a file of name:bcrypt-hash lines (mounted from a Secret; never in the configuration itself). Environment: SCHEDR_CONFIG__UI__AUTH__USERS_FILE.

[watchers]

Wait steps (@sensor, @sensor.poke).

Key

Type

Default

Description

block_limit

duration

30s

How long a wait step may hold its host’s event loop before reaching an await. Past it the host is killed: the wait step fails with blocked_event_loop, and the others on the host start again without using a retry. Environment: SCHEDR_CONFIG__WATCHERS__BLOCK_LIMIT.

memory_budget

size

1GiB

The memory all of a worker’s hosts may use together. Past it the largest is killed: its wait steps end lost, each using a retry. Environment: SCHEDR_CONFIG__WATCHERS__MEMORY_BUDGET.

poke_overruns

integer

3

After how many calls in a row that each ran past its every a sensor’s poke fails (PokeTooSlowError). A call may run on past every to three times it, then it is cancelled and fails at once. 1 (or 0): at the first. Environment: SCHEDR_CONFIG__WATCHERS__POKE_OVERRUNS.

slots

integer

500

How many wait steps a worker runs at once, apart from [worker] slots. 0: none. Environment: SCHEDR_CONFIG__WATCHERS__SLOTS.

switch_off_after

integer

3

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 schedr sensors switch-on. 0: never. Environment: SCHEDR_CONFIG__WATCHERS__SWITCH_OFF_AFTER.

[webserver]

The REST API (and later the UI).

Key

Type

Default

Description

bind

IP address

0.0.0.0

The address schedr webserver listens on (all interfaces by default; schedr standalone always listens on 127.0.0.1). Environment: SCHEDR_CONFIG__WEBSERVER__BIND.

connection_test_timeout

duration

1m

How long a connection test may take when the request doesn’t say. Raise it for connections slow to open; schedr connections test --timeout sets it for one test. Environment: SCHEDR_CONFIG__WEBSERVER__CONNECTION_TEST_TIMEOUT.

port

integer

8080

The HTTP port of the REST API (and later the UI). Environment: SCHEDR_CONFIG__WEBSERVER__PORT.

ui_port

integer

8083

The port serving the whole API to schedr ui alone, its calls there passing the user’s name on (decision 36): in [tls] mode = "app" over mTLS (its certificate must name [tls] ui_name); in mesh mode only with ui_port_in_mesh. Elsewhere the UI proves itself by ui_token_file. Environment: SCHEDR_CONFIG__WEBSERVER__UI_PORT.

ui_port_in_mesh

boolean

false

In [tls] mode = "mesh": serve ui_port in plain HTTP, trusting the mesh to let only schedr ui reach it (Istio’s AuthorizationPolicy admitting only its account: decision 40A), as the mesh is trusted with the master’s and workers’ links. Nothing in schedr guards that port then: without such a policy, whoever reaches it could name any user. Environment: SCHEDR_CONFIG__WEBSERVER__UI_PORT_IN_MESH.

ui_token_file

string

not set

A file holding the token schedr ui presents (X-Schedr-Ui-Token) to prove its calls, where there is no mTLS: mesh mode, and standalone (decision 36); mounted from a Secret. None: no caller is trusted that way. Environment: SCHEDR_CONFIG__WEBSERVER__UI_TOKEN_FILE.

worker_request_timeout

duration

30s

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: SCHEDR_CONFIG__WEBSERVER__WORKER_REQUEST_TIMEOUT.

[webserver.auth]

Who the user is.

Key

Type

Default

Description

allow_remote

boolean

false

proxy_header beyond a loopback address: everything reaching it comes through the proxy (anything reaching it around the proxy could name any user: refused without it). Environment: SCHEDR_CONFIG__WEBSERVER__AUTH__ALLOW_REMOTE.

behind_tls_proxy

boolean

false

basic beyond a loopback address: TLS is ended by a proxy in front (passwords would otherwise cross the network in the clear: refused without it). Environment: SCHEDR_CONFIG__WEBSERVER__AUTH__BEHIND_TLS_PROXY.

identity_header

string

not set

none: a header naming the user, recorded if present (e.g. x-forwarded-user, set by a mesh from its token); proxy_header: the header the SSO proxy sets, required (x-forwarded-user when not set). Environment: SCHEDR_CONFIG__WEBSERVER__AUTH__IDENTITY_HEADER.

mode

one of none, proxy_header, basic

none

How the user is known. none: Whoever reaches it: access is decided in front (a mesh, the namespace). proxy_header: An SSO proxy in front logs users in and names them in a header. basic: HTTP Basic against users_file. Environment: SCHEDR_CONFIG__WEBSERVER__AUTH__MODE.

users_file

string

not set

basic: a file of name:bcrypt-hash lines (mounted from a Secret; never in the configuration itself). Environment: SCHEDR_CONFIG__WEBSERVER__AUTH__USERS_FILE.

[worker]

This worker’s identity, capacity and data directory.

Key

Type

Default

Description

cleanup_timeout

duration

not set

How long one try of a cleanup may run, for a task that doesn’t set cleanup_timeout. The attempt holds its slot meanwhile: raise it if your cleanups wait on slow systems, lower it to free slots sooner. When not set, 5 minutes or what a drain leaves of termination_grace_period for a cleanup, whichever is shorter (25 s with the defaults; B252: a longer one is lost when the pod is killed at the grace period’s end), at least 1 s. Environment: SCHEDR_CONFIG__WORKER__CLEANUP_TIMEOUT.

connection_dir

string

not set

Where commands’ connection files go while their attempts run (.pgpass, SSH keys: secrets as files their tools read), in a folder per worker; the worker’s user’s own, mode 0700, or the worker refuses to start. In memory when not set: under /dev/shm where it exists, else connections/ in data_dir. Environment: SCHEDR_CONFIG__WORKER__CONNECTION_DIR.

data_dir

string

not set

Where task logs, the journal (journal/<id>; keep it across restarts), the copies of the DAG roots’ code that parse jobs and tasks import from (code/<id>, one or two per root, read-only) and (in standalone) the SQLite database go; $XDG_DATA_HOME/schedr (else ~/.local/share/schedr) when not set. Environment: SCHEDR_CONFIG__WORKER__DATA_DIR.

drain_terminate_period

duration

3s

For a task still running when a drain’s time is up: from its SIGTERM to its SIGKILL (the drain’s own, instead of [master] cancel_grace). The running tasks get termination_grace_period minus this and drain_report_period, whose sum must not exceed it. Environment: SCHEDR_CONFIG__WORKER__DRAIN_TERMINATE_PERIOD.

fork_server_import_retry

duration

20m

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); 0s: not retried. Threads after preloading and a version mismatch are never retried (they don’t change until the image does). Environment: SCHEDR_CONFIG__WORKER__FORK_SERVER_IMPORT_RETRY.

fork_server_preload_timeout

duration

5m

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: SCHEDR_CONFIG__WORKER__FORK_SERVER_PRELOAD_TIMEOUT.

id

string

not set

The worker’s ID, stable across restarts; the host name when not set. Environment: SCHEDR_CONFIG__WORKER__ID.

log_address

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: SCHEDR_CONFIG__WORKER__LOG_ADDRESS.

log_bind

IP address

0.0.0.0

The address the log endpoint listens on (all interfaces by default; schedr standalone always listens on 127.0.0.1). Environment: SCHEDR_CONFIG__WORKER__LOG_BIND.

log_max_size

size

not set

Beyond this many bytes of logs the oldest are deleted; no limit when not set. Environment: SCHEDR_CONFIG__WORKER__LOG_MAX_SIZE.

log_mode

string

0600

The mode of the log files the worker creates (task, attempt, parse and watcher-host logs), in octal: owner-only "0600" by default, as the journal and connection files. A log shipper reading them under another uid needs them opened on purpose: "0640" for one in the worker’s group. At most "0644", and the owner always reads and writes. Environment: SCHEDR_CONFIG__WORKER__LOG_MODE.

log_port

integer

8081

The log endpoint’s port (0: a free one). Environment: SCHEDR_CONFIG__WORKER__LOG_PORT.

log_retention

duration

30d

Task logs older than this are deleted. Environment: SCHEDR_CONFIG__WORKER__LOG_RETENTION.

master_url

string

not set

The master’s gRPC URL, e.g. https://schedr-master:8070 (http:// with [tls] mode = "mesh"); required by schedr worker (schedr standalone connects to its own master). Environment: SCHEDR_CONFIG__WORKER__MASTER_URL.

memory_budget

size

not set

Each task’s memory budget; when not set, (the pod’s limit − 10 %) ÷ slots. Environment: SCHEDR_CONFIG__WORKER__MEMORY_BUDGET.

memory_reserve

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 (25%) or a size (1GiB); when not set, 10 % for schedr worker and 25 % for schedr standalone (whose process also runs the master and the API). Not used when memory_budget is set. Environment: SCHEDR_CONFIG__WORKER__MEMORY_RESERVE.

pass_env

list of strings

none

Agent environment variables passed to tasks besides the allow-list. Environment: SCHEDR_CONFIG__WORKER__PASS_ENV.

queues

list of strings

none

The queues served; none serves default. Environment: SCHEDR_CONFIG__WORKER__QUEUES.

resource_cleanup_timeout

duration

30m

How long one try of a resource’s cleanup may run, for one that doesn’t set timeout. It ends a cleanup hung on a system that never answers, which can’t be cancelled with its run and holds the run (and its max_active_runs slot) until it ends. Raise it for teardowns that take longer (a cluster’s deletion), lower it to notice a hang sooner. Environment: SCHEDR_CONFIG__WORKER__RESOURCE_CLEANUP_TIMEOUT.

runner_start_timeout

duration

30s

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: SCHEDR_CONFIG__WORKER__RUNNER_START_TIMEOUT.

slots

integer

2

Task slots. Environment: SCHEDR_CONFIG__WORKER__SLOTS.

termination_grace_period

duration

30s

How long running tasks get when the worker is asked to stop (SIGTERM): match the pod’s terminationGracePeriodSeconds. Environment: SCHEDR_CONFIG__WORKER__TERMINATION_GRACE_PERIOD.