Skip to content

supervisor

supervisor

Hidden supervisor CLI verb — the long-running per-container process.

Invoked by the OCI hook chain (via terok_sandbox.resources.supervisor_wrapper) rather than directly by operators; the group tag pins it under the internal section so it doesn't pollute the default --help.

Operators can still call it for debugging — terok-sandbox supervisor <container-id> <sidecar-path> reads the same sidecar config the hook chain prepared and composes the same service bundle. Stops cleanly on Ctrl-C.

SUPERVISOR_COMMANDS = (CommandDef(name='supervisor', help='Run the per-container supervisor (internal; spawned by the OCI hook)', handler=_handle_supervisor, group='internal', args=(ArgDef(name='container_id', help='Container ID the supervisor manages'), ArgDef(name='sidecar_path', help='Absolute path to the per-container sidecar JSON'))),) module-attribute

__all__ = ['SUPERVISOR_COMMANDS'] module-attribute