Skip to content

Commit 4fca164

Browse files
rkannan82claude
andcommitted
Rename shutdown_worker_rejected to completed_by_worker_shutdown
Aligns the field name with the ShutdownWorker capability name and removes ambiguity from the old name. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 67891ac commit 4fca164

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,13 @@ message PollWorkflowTaskQueueResponse {
338338
repeated temporal.api.protocol.v1.Message messages = 15;
339339
// Server-advised information the SDK may use to adjust its poller count.
340340
temporal.api.taskqueue.v1.PollerScalingDecision poller_scaling_decision = 16;
341-
// When true, this empty response was caused by the server rejecting the poll
341+
// When true, this empty response was caused by the server completing the poll
342342
// because the worker has been shut down via the ShutdownWorker API. The SDK
343343
// should stop polling on this task queue.
344-
bool shutdown_worker_rejected = 17;
344+
//
345+
// (-- api-linter: core::0140::prepositions=disabled
346+
// aip.dev/not-precedent: "by" describes the cause of poll completion. --)
347+
bool completed_by_worker_shutdown = 17;
345348
}
346349

347350
message RespondWorkflowTaskCompletedRequest {
@@ -540,10 +543,13 @@ message PollActivityTaskQueueResponse {
540543
temporal.api.common.v1.Priority priority = 19;
541544
// The run ID of the activity execution, only set for standalone activities.
542545
string activity_run_id = 20;
543-
// When true, this empty response was caused by the server rejecting the poll
546+
// When true, this empty response was caused by the server completing the poll
544547
// because the worker has been shut down via the ShutdownWorker API. The SDK
545548
// should stop polling on this task queue.
546-
bool shutdown_worker_rejected = 21;
549+
//
550+
// (-- api-linter: core::0140::prepositions=disabled
551+
// aip.dev/not-precedent: "by" describes the cause of poll completion. --)
552+
bool completed_by_worker_shutdown = 21;
547553
}
548554

549555
message RecordActivityTaskHeartbeatRequest {
@@ -1931,10 +1937,13 @@ message PollNexusTaskQueueResponse {
19311937
temporal.api.nexus.v1.Request request = 2;
19321938
// Server-advised information the SDK may use to adjust its poller count.
19331939
temporal.api.taskqueue.v1.PollerScalingDecision poller_scaling_decision = 3;
1934-
// When true, this empty response was caused by the server rejecting the poll
1940+
// When true, this empty response was caused by the server completing the poll
19351941
// because the worker has been shut down via the ShutdownWorker API. The SDK
19361942
// should stop polling on this task queue.
1937-
bool shutdown_worker_rejected = 4;
1943+
//
1944+
// (-- api-linter: core::0140::prepositions=disabled
1945+
// aip.dev/not-precedent: "by" describes the cause of poll completion. --)
1946+
bool completed_by_worker_shutdown = 4;
19381947
}
19391948

19401949
message RespondNexusTaskCompletedRequest {

0 commit comments

Comments
 (0)