Skip to content

Commit db5f593

Browse files
authored
Add poller autoscaling namespace capability (#723)
1 parent 54414e1 commit db5f593

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

openapi/openapiv2.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13736,6 +13736,10 @@
1373613736
"workerPollCompleteOnShutdown": {
1373713737
"type": "boolean",
1373813738
"description": "True if the namespace supports server-side completion of outstanding worker polls on shutdown.\nWhen enabled, the server will complete polls for workers that send WorkerInstanceKey in their\npoll requests and call ShutdownWorker with the same WorkerInstanceKey. The poll will return\nan empty response. When this flag is true, workers should allow polls to return gracefully\nrather than terminating any open polls on shutdown."
13739+
},
13740+
"pollerAutoscaling": {
13741+
"type": "boolean",
13742+
"title": "True if the namespace supports poller autoscaling"
1373913743
}
1374013744
},
1374113745
"description": "Namespace capability details. Should contain what features are enabled in a namespace."

openapi/openapiv3.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10767,6 +10767,9 @@ components:
1076710767
poll requests and call ShutdownWorker with the same WorkerInstanceKey. The poll will return
1076810768
an empty response. When this flag is true, workers should allow polls to return gracefully
1076910769
rather than terminating any open polls on shutdown.
10770+
pollerAutoscaling:
10771+
type: boolean
10772+
description: True if the namespace supports poller autoscaling
1077010773
description: Namespace capability details. Should contain what features are enabled in a namespace.
1077110774
NamespaceInfo_Limits:
1077210775
type: object

temporal/api/namespace/v1/message.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ message NamespaceInfo {
4848
// an empty response. When this flag is true, workers should allow polls to return gracefully
4949
// rather than terminating any open polls on shutdown.
5050
bool worker_poll_complete_on_shutdown = 8;
51+
// True if the namespace supports poller autoscaling
52+
bool poller_autoscaling = 9;
5153
}
5254

5355
// Namespace configured limits

0 commit comments

Comments
 (0)