Skip to content

Add worker_poll_complete_on_shutdown namespace capability#9323

Merged
rkannan82 merged 2 commits intomainfrom
kannan/poll_cancel_shutdown-capability/server
Feb 13, 2026
Merged

Add worker_poll_complete_on_shutdown namespace capability#9323
rkannan82 merged 2 commits intomainfrom
kannan/poll_cancel_shutdown-capability/server

Conversation

@rkannan82
Copy link
Contributor

@rkannan82 rkannan82 commented 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

@rkannan82 rkannan82 requested review from a team as code owners February 13, 2026 19:18
@rkannan82 rkannan82 force-pushed the kannan/poll_cancel_shutdown-capability/server branch 2 times, most recently from 58b2df4 to e6b40bc Compare February 13, 2026 19:29
@rkannan82 rkannan82 changed the title Add worker_poll_cancellation_on_shutdown namespace capability Add worker_poll_complete_on_shutdown namespace capability Feb 13, 2026
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
@rkannan82 rkannan82 force-pushed the kannan/poll_cancel_shutdown-capability/server branch 3 times, most recently from b7b517e to 0064bb9 Compare February 13, 2026 19:51
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 rkannan82 force-pushed the kannan/poll_cancel_shutdown-capability/server branch from 0064bb9 to 10f902d Compare February 13, 2026 19:55
@rkannan82 rkannan82 merged commit b14449f into main Feb 13, 2026
45 checks passed
@rkannan82 rkannan82 deleted the kannan/poll_cancel_shutdown-capability/server branch February 13, 2026 20:42
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