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
commandandscripttask gets asSCHEDR_*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.