Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions openapi/openapiv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -15355,6 +15355,10 @@
"pollerScalingDecision": {
"$ref": "#/definitions/v1PollerScalingDecision",
"description": "Server-advised information the SDK may use to adjust its poller count."
},
"completedByWorkerShutdown": {
"type": "boolean",
"description": "When true, this empty response was caused by the server completing the poll\nbecause the worker has been shut down via the ShutdownWorker API. The SDK\nshould stop polling on this task queue.\n"
}
}
},
Expand Down
9 changes: 9 additions & 0 deletions openapi/openapiv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12220,6 +12220,15 @@ components:
allOf:
- $ref: '#/components/schemas/PollerScalingDecision'
description: Server-advised information the SDK may use to adjust its poller count.
completedByWorkerShutdown:
type: boolean
description: |-
When true, this empty response was caused by the server completing the poll
because the worker has been shut down via the ShutdownWorker API. The SDK
should stop polling on this task queue.

(-- api-linter: core::0140::prepositions=disabled
aip.dev/not-precedent: "by" describes the cause of poll completion. --)
PollerInfo:
type: object
properties:
Expand Down
21 changes: 21 additions & 0 deletions temporal/api/workflowservice/v1/request_response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,13 @@ message PollWorkflowTaskQueueResponse {
repeated temporal.api.protocol.v1.Message messages = 15;
// Server-advised information the SDK may use to adjust its poller count.
temporal.api.taskqueue.v1.PollerScalingDecision poller_scaling_decision = 16;
// When true, this empty response was caused by the server completing the poll
// because the worker has been shut down via the ShutdownWorker API. The SDK
// should stop polling on this task queue.
//
// (-- api-linter: core::0140::prepositions=disabled
// aip.dev/not-precedent: "by" describes the cause of poll completion. --)
bool completed_by_worker_shutdown = 17;
}

message RespondWorkflowTaskCompletedRequest {
Expand Down Expand Up @@ -536,6 +543,13 @@ message PollActivityTaskQueueResponse {
temporal.api.common.v1.Priority priority = 19;
// The run ID of the activity execution, only set for standalone activities.
string activity_run_id = 20;
// When true, this empty response was caused by the server completing the poll
// because the worker has been shut down via the ShutdownWorker API. The SDK
// should stop polling on this task queue.
//
// (-- api-linter: core::0140::prepositions=disabled
// aip.dev/not-precedent: "by" describes the cause of poll completion. --)
bool completed_by_worker_shutdown = 21;
}

message RecordActivityTaskHeartbeatRequest {
Expand Down Expand Up @@ -1923,6 +1937,13 @@ message PollNexusTaskQueueResponse {
temporal.api.nexus.v1.Request request = 2;
// Server-advised information the SDK may use to adjust its poller count.
temporal.api.taskqueue.v1.PollerScalingDecision poller_scaling_decision = 3;
// When true, this empty response was caused by the server completing the poll
// because the worker has been shut down via the ShutdownWorker API. The SDK
// should stop polling on this task queue.
//
// (-- api-linter: core::0140::prepositions=disabled
// aip.dev/not-precedent: "by" describes the cause of poll completion. --)
bool completed_by_worker_shutdown = 4;
}

message RespondNexusTaskCompletedRequest {
Expand Down
Loading