Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions temporal/api/session/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i could be missing something, but in my head a general session worker == multi-session worker since it can serve multiple workflows-as-sessions (which is why i scraped off using 'GeneralSessionOptions' and made this)

MultiSessionOptions multi_session = 2;
}
}

Expand All @@ -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 {
Expand Down
Loading