nemo_gym.web.site_pool
nemo_gym.web.site_pool
Site-stack lease boundary and in-process reader/writer scheduling.
Module Contents
Classes
API
Coordinate shared readers and exclusive writers for configured sites.
Locks prevent concurrent tasks from mutating the same site stack; they do not reset or isolate site data. Cross-site tasks acquire all locks in one condition critical section, avoiding partial acquisition and deadlocks.
Bases: RuntimeError
A site already has its maximum number of concurrent sessions.
Cap concurrent sessions per site; tasks on other sites are unaffected.
Public sites rate-limit by client IP. When many rollouts share one egress IP, a burst of sessions on one site (GitHub, Hugging Face) triggers those limits and turns tasks into site-access failures. A full site rejects the seed instead of queueing it, so the caller retries later and the slot it would have held stays free for other sites.
Use externally configured sites without reset or isolation guarantees.