Skip to main content

List a session's worker generations

GET 

/session/workers

Lists the worker generations of the session named by X-Session-ID, newest first (by creation time, then ID). A generation is one worker process or container that ran the session's turns. It records the agent space and the agent space revision it started under, its lifecycle state, and for a Docker generation its container ID and image digest. A new generation starts when a session's next turn needs a worker and none is running, for example after POST /session/reconfigure stopped the previous one.

Page with limit and offset.

Returns 404 SESSION_NOT_FOUND when the session does not exist, and 400 for a malformed X-Session-ID or an out-of-range limit or offset.

Request​

Responses​

Page of worker generations, newest first.

Response Headers
    X-Session-ID

    The session this response belongs to. For session-scoped requests it echoes the X-Session-ID request header; for POST /sessions/open and POST /sessions/system it is the session that was opened or created.

    X-Request-ID

    The request's correlation ID. When the request carried an X-Request-ID header holding a UUID, Peen echoes it; otherwise Peen generates a new UUID. The controller log records the same value for this request.