Node API

Every exported name in ReactantServerNode that carries a docstring: the single-container node supervisor. See the API overview for the other packages and the unexported internals the guides refer to.

ReactantServerNode.supervise — Method
supervise(node_path; role=nothing, gateway_path=nothing, sink=stdout, env=ENV,
          install_signal_handlers=true, kwargs...) -> Int

Run the node: spawn one worker subprocess per visible GPU (and the embedded gateway in the default all-in-one role), multiplex their output onto sink with [name] line prefixes, restart children that die, kill and restart a worker or the embedded gateway that stops answering its liveness check once it has been ready (the node file's liveness: block; see Liveness under Node Configuration), and block until SIGTERM/SIGINT (or a crash-loop budget breach). Returns the process exit code.

source