pub fn task_environment(
agent_env: &BTreeMap<String, String>,
pass_env: &[String],
task_env: &BTreeMap<String, String>,
run: &RunVars,
) -> Result<BTreeMap<String, String>, EnvError>Expand description
The complete environment of a task process.
Layers, later ones winning: the allow-listed agent variables, the agent variables named in
pass_env, the task’s own env, the run variables.
§Errors
Returns EnvError::Reserved if the task’s env sets a SCHEDR_* variable.