diff --git a/temporal/api/session/v1/message.proto b/temporal/api/session/v1/message.proto index 51aac24b1..ef59aeada 100644 --- a/temporal/api/session/v1/message.proto +++ b/temporal/api/session/v1/message.proto @@ -22,6 +22,8 @@ message WorkerSessionOptions { oneof admission { // If specified, the worker only polls for work belonging to its session. SingleSessionOptions single_session = 1; + // If specified, the worker can serve multiple sessions at once. + MultiSessionOptions multi_session = 2; } } @@ -43,6 +45,16 @@ message SingleSessionOptions { string stable_identity = 1; } +// EXPERIMENTAL. Subject to redesign or removal. +// Serve any number of sessions concurrently. Future admission knobs (e.g. +// session slots) belong here. +message MultiSessionOptions { + // Where the server routes session work bound to this worker. + // Currently set by the SDK to the worker's sticky queue name, and not + // user-configurable. May become configurable in the future. + string worker_address = 1; +} + // EXPERIMENTAL. Subject to redesign or removal. // Resolved activity placement. Unset = normal task-queue routing. message ActivitySessionOptions {