context_isolation

Intro

Because protoprimer restarts python and communicates state via env_var, it is important to manage them at exit_point-s to avoid disrupting one protoprimer invocation by another.

The idea is to ensure no env vars leak through exit_point-s, otherwise, there can be a need to save them inside some sort of stack and restore them (to avoid overwriting).

Custom steps extending boot_env should guarantee to clean the env vars at exit_point themselves.

See also

context_propagation has the opposite purpose to provide the abs path to proto_code. But it is done via python global variable which does not leek it to any child process via env vars.