Skip to content

Commit efc4fc9

Browse files
committed
Add worker_poll_complete_on_shutdown namespace capability
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.
1 parent ff14265 commit efc4fc9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

temporal/api/namespace/v1/message.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ message NamespaceInfo {
4242
bool workflow_pause = 6;
4343
// True if the namespace supports standalone activities
4444
bool standalone_activities = 7;
45+
// True if the namespace supports server-side completion of outstanding worker polls on shutdown.
46+
// When enabled, the server will complete polls for workers that send WorkerInstanceKey in their
47+
// poll requests and call ShutdownWorker with the same WorkerInstanceKey. The poll will return
48+
// an empty response. When this flag is true, workers should allow polls to return gracefully
49+
// rather than terminating any open polls on shutdown.
50+
bool worker_poll_complete_on_shutdown = 8;
4551
}
4652

4753
// Namespace configured limits

0 commit comments

Comments
 (0)