nemo_rl.data_plane.adapters.tq_controller_checkpoint#

Immutable controller checkpoint bytes for pinned TransferQueue 0.1.11.

Capture serializes the native checkpoint layout under a lock shared with the controller’s ZMQ request dispatcher. Persistence writes only the retained bytes without excluding live requests. Callers enforce a global data-plane mutation cut across controller and storage capture. No metadata payload crosses Ray.

Module Contents#

Classes#

SnapshotControllerMixin

Keep one immutable metadata cut while live request traffic continues.

Functions#

configure_controller_checkpoint

Wrap the controller before initialization, retaining existing patches.

Data#

API#

nemo_rl.data_plane.adapters.tq_controller_checkpoint.LOGGER#

‘getLogger(…)’

class nemo_rl.data_plane.adapters.tq_controller_checkpoint.SnapshotControllerMixin(*args: Any, **kwargs: Any)#

Keep one immutable metadata cut while live request traffic continues.

Initialization

_handle_request(
request_msg: Any,
monitor: Any,
) → Any#
load_checkpoint(path: str) → None#
nrl_capture_snapshot(token: str) → str#

Serialize live metadata under the request lock; return only its ID.

nrl_persist_snapshot(token: str, path: str) → int#

Write captured bytes without holding the live-request lock.

nrl_release_snapshot(token: str) → None#

Idempotently release the immutable payload after writes settle.

nemo_rl.data_plane.adapters.tq_controller_checkpoint.configure_controller_checkpoint() → None#

Wrap the controller before initialization, retaining existing patches.