Skip to content

Carry a worker's session options on its heartbeat - #920

Closed
Shivs11 wants to merge 1 commit into
shivam/session-binding-historyfrom
shivam/session-heartbeat-options
Closed

Shivs11 wants to merge 1 commit into
shivam/session-binding-historyfrom
shivam/session-heartbeat-options

Conversation

@Shivs11

@Shivs11 Shivs11 commented Nov 24, 2026

Copy link
Copy Markdown
Member

What changed?
WorkerHeartbeat.session_options (temporal.api.session.v1.WorkerSessionOptions), the same options the worker sends on its polls.

Why?
Lets the server recognize a stopped multi-session worker (from ShutdownWorker or a missed-heartbeat expiry) and move the workflows bound to it to other workers.

Breaking changes
None. New experimental field; unset for workers without sessions.

Server PR
To follow, on top of the session stack (session worker queue drain).

@Shivs11

Shivs11 commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Folded into #885 so the session API can be reviewed in one place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant