@@ -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
347350message 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
549555message 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
19401949message RespondNexusTaskCompletedRequest {
0 commit comments