nemo_gym.server_runtime.request_handling.session_id
nemo_gym.server_runtime.request_handling.session_id
Middleware that gives every request’s session a Gym session ID.
Module Contents
Classes
API
Assign the session ID before the route runs, and settle it when the reply starts.
SessionMiddleware must wrap this middleware.
It puts the session in scope["session"], and writes the cookie when the reply starts, after this middleware has
settled the session.
async
Exception
Bases: Exception
Stops a route whose reply the 409 for another worker’s session replaced, so it streams nothing more.