nemo_gym.sandbox.providers.utils
nemo_gym.sandbox.providers.utils
Helpers shared by the built-in sandbox providers.
These were previously duplicated verbatim across the enroot, apptainer, and opensandbox providers. They live here so there is a single implementation.
Module Contents
Functions
Data
API
Accept either a config dataclass instance or a plain mapping (Hydra YAML).
Kill the process group of a CLI command whose wait was cancelled, then reap it.
A provider runner calls this when the await on its command is cancelled, for example by the time limit of
AsyncSandbox.stop, and then re-raises the cancellation. Without it, only the runner’s own command
timeout kills the process, so a cancelled call leaves the command running. The reap is shielded from the
cancellation that is still in force and bounded by REAP_TIMEOUT_S.
If path is inside the mount, return its path relative to the mount; else None.