nemo_gym.sandbox.process_supervisor
nemo_gym.sandbox.process_supervisor
Standalone Linux process supervisor to upload beside a sandboxed harness.
Uses only the standard library; Gym need not be installed in the task sandbox. The receipt confirms descendant cleanup independently of the worker’s result.
Module Contents
Classes
Functions
Data
API
Bases: typing.TypedDict
Outcome written only after supervision and bounded cleanup finish.
cleanup_confirmed
error
return_code
timed_out
Reap tool descendants, including processes that detached with setsid().
Enforce a worker deadline, then acknowledge cleanup after all descendants exit.
Leave room for TERM grace, worker reaping, descendant draining, and receipt I/O.
Run COMMAND and atomically write its cleanup receipt outside the task workdir.