Skip to content

ScholaEnvRunner

Full path: schola.rllib.env_runner.ScholaEnvRunner

MultiAgentEnvRunner that instantiates RayVecEnv with Schola wiring.

ScholaEnvRunner(*args, **kwargs)

Methods

resolve_protocol_args

resolve_protocol_args(protocol_args, port_offset_mode = 'per_worker',
worker_index = None)

Apply per-worker URL template expansion and port-offset logic.

Parameters

  • protocol_args (dict) - Base protocol keyword arguments (url, port, …).

  • port_offset_mode (str) - “per_worker” adds worker_index to the base port (single-host default). “fixed” keeps the same port on every worker (K8s pods with isolated networks).

  • worker_index (int) - The Ray worker index, if available.