Add worker_poll_complete_on_shutdown namespace capability#719
Merged
Add worker_poll_complete_on_shutdown namespace capability#719
Conversation
Sushisource
approved these changes
Feb 13, 2026
yuandrew
approved these changes
Feb 13, 2026
cretz
approved these changes
Feb 13, 2026
846873a to
1e33e4b
Compare
rkannan82
added a commit
to temporalio/temporal
that referenced
this pull request
Feb 13, 2026
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)
1e33e4b to
efc4fc9
Compare
This capability indicates whether the server supports server-side completion of outstanding worker polls on shutdown. When enabled, the server will complete polls for workers that send WorkerInstanceKey in their poll requests and call ShutdownWorker with the same key.
efc4fc9 to
49b65e4
Compare
rkannan82
added a commit
to temporalio/temporal
that referenced
this pull request
Feb 13, 2026
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)
rkannan82
added a commit
to temporalio/temporal
that referenced
this pull request
Feb 13, 2026
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)
rkannan82
added a commit
to temporalio/temporal
that referenced
this pull request
Feb 13, 2026
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)
rkannan82
added a commit
to temporalio/temporal
that referenced
this pull request
Feb 13, 2026
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)
rkannan82
added a commit
to temporalio/temporal
that referenced
this pull request
Feb 13, 2026
## What Changed Exposes the `EnableCancelWorkerPollsOnShutdown` dynamic config as a namespace capability in `DescribeNamespace` response. ## 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 `DescribeNamespace` and decide: - If `true`: Send `WorkerInstanceKey` in polls and rely on server to complete polls on shutdown - If `false`: Handle poll completion client-side (existing behavior) ## How - `service/frontend/namespace_handler.go`: Added `WorkerPollCompleteOnShutdown` to capabilities - `service/frontend/namespace_handler_test.go`: Added test coverage for the new capability ## Dependencies - Bumped `go.temporal.io/api` to `v1.62.2-0.20260213194545-c89ebac64f01` to include new proto field from temporalio/api#719
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
Adds a new namespace capability
worker_poll_complete_on_shutdownto 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:
WorkerInstanceKeyin their poll requestsShutdownWorkerwith the sameWorkerInstanceKeySDKs can check this capability via
DescribeNamespaceto decide whether to rely on server-side poll completion or handle it client-side.How
bool worker_poll_complete_on_shutdown = 8toNamespaceInfo.Capabilitiesmessage innamespace/v1/message.protoRelated PRs