Skip to content

Record the bound worker's queue in SessionInfo - #927

Merged
Shivs11 merged 1 commit into
sticky-activity-session-optionsfrom
shivam/session-info-worker-queue
Nov 25, 2026
Merged

Shivs11 merged 1 commit into
sticky-activity-session-optionsfrom
shivam/session-info-worker-queue

Conversation

@Shivs11

@Shivs11 Shivs11 commented Nov 25, 2026

Copy link
Copy Markdown
Member

What changed?
SessionInfo.worker_queue: the sticky queue of the worker a workflow is bound to (stable identity for single-session, worker instance key for multi-session).

Why?
History has no other record of the bound worker's queue: the workflow task that binds a worker is scheduled on the normal queue, the started/completed events carry no queue, and the started event's task_queue is the workflow's normal queue that SDKs read. Without it, a reset to the binding task or a continue-as-new/retry rebuild loses the binding. Written only on history events; read only when the server rebuilds state from them.

Breaking changes
None. New experimental field on top of #885.

Server PR
To follow, with the session stack.

History has no other record of the bound worker's sticky queue, so the server
needs it to restore a binding when it rebuilds a workflow from history (reset,
event-based replication) and to carry it to the next run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Shivs11
Shivs11 requested review from a team as code owners November 25, 2026 19:53
@Shivs11
Shivs11 merged commit 5dae7e5 into sticky-activity-session-options Nov 25, 2026
2 checks passed
@Shivs11
Shivs11 deleted the shivam/session-info-worker-queue branch November 25, 2026 20:40
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.

2 participants