Skip to main content

Module env

Module env 

Source
Expand description

The environment of a task process: clean by default (see archive/PROJECT.md, Worker environment).

A task gets only a small allow-list of the agent’s variables, those listed in [worker] pass_env, the task’s own env, and the SCHEDR_* run variables. The agent’s own configuration, certificate paths and credentials never reach a task by accident.

Structs§

RunVars
The run information every command and script task gets as SCHEDR_* variables.

Enums§

EnvError
Why a task’s environment can’t be built.

Constants§

ALLOWED
The agent’s variables every task process gets (plus every LC_*).
RESERVED_PREFIX
The prefix of the run variables, reserved for schedr.

Functions§

is_allowed
Whether an agent variable is on the allow-list.
task_environment
The complete environment of a task process.