Commit b66af7a
authored
Add worker_poll_complete_on_shutdown namespace capability (#719)
## 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#93231 parent ff14265 commit b66af7a
3 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13670 | 13670 | | |
13671 | 13671 | | |
13672 | 13672 | | |
| 13673 | + | |
| 13674 | + | |
| 13675 | + | |
| 13676 | + | |
13673 | 13677 | | |
13674 | 13678 | | |
13675 | 13679 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10744 | 10744 | | |
10745 | 10745 | | |
10746 | 10746 | | |
| 10747 | + | |
| 10748 | + | |
| 10749 | + | |
| 10750 | + | |
| 10751 | + | |
| 10752 | + | |
| 10753 | + | |
| 10754 | + | |
10747 | 10755 | | |
10748 | 10756 | | |
10749 | 10757 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
0 commit comments