Add worker_poll_complete_on_shutdown namespace capability#9323
Merged
Add worker_poll_complete_on_shutdown namespace capability#9323
Conversation
58b2df4 to
e6b40bc
Compare
rkannan82
added a commit
to temporalio/api
that referenced
this pull request
Feb 13, 2026
## What Changed Adds a new namespace capability `worker_poll_complete_on_shutdown` to indicate whether the server supports server-side completion of outstanding worker polls on shutdown. ## Why When this capability is enabled, the server will complete polls for workers that: 1. Send `WorkerInstanceKey` in their poll requests 2. Call `ShutdownWorker` with the same `WorkerInstanceKey` SDKs can check this capability via `DescribeNamespace` to decide whether to rely on server-side poll completion or handle it client-side. ## How - Added `bool worker_poll_complete_on_shutdown = 8` to `NamespaceInfo.Capabilities` message in `namespace/v1/message.proto` ## Related PRs - Server: temporalio/temporal#9323
temporal-cicd bot
pushed a commit
to temporalio/api-go
that referenced
this pull request
Feb 13, 2026
## What Changed Adds a new namespace capability `worker_poll_complete_on_shutdown` to indicate whether the server supports server-side completion of outstanding worker polls on shutdown. ## Why When this capability is enabled, the server will complete polls for workers that: 1. Send `WorkerInstanceKey` in their poll requests 2. Call `ShutdownWorker` with the same `WorkerInstanceKey` SDKs can check this capability via `DescribeNamespace` to decide whether to rely on server-side poll completion or handle it client-side. ## How - Added `bool worker_poll_complete_on_shutdown = 8` to `NamespaceInfo.Capabilities` message in `namespace/v1/message.proto` ## Related PRs - Server: temporalio/temporal#9323
b7b517e to
0064bb9
Compare
Exposes the EnableCancelWorkerPollsOnShutdown dynamic config as a namespace capability. This allows SDKs to check whether the server supports server-side poll completion on shutdown before relying on it. Depends on: temporalio/api#719 (proto changes)
0064bb9 to
10f902d
Compare
bergundy
approved these changes
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
Exposes the
EnableCancelWorkerPollsOnShutdowndynamic config as a namespace capability inDescribeNamespaceresponse.Why
SDKs need to know whether the server supports server-side poll completion on shutdown before relying on it. This capability allows SDKs to check via
DescribeNamespaceand decide:true: SendWorkerInstanceKeyin polls and rely on server to complete polls on shutdownfalse: Handle poll completion client-side (existing behavior)How
service/frontend/namespace_handler.go: AddedWorkerPollCompleteOnShutdownto capabilitiesservice/frontend/namespace_handler_test.go: Added test coverage for the new capabilityDependencies
go.temporal.io/apitov1.62.2-0.20260213194545-c89ebac64f01to include new proto field from Add worker_poll_complete_on_shutdown namespace capability api#719