Skip to content

Commit c149ac6

Browse files
authored
Add plugin info to worker heartbeats (#619)
1 parent 2c64a5d commit c149ac6

File tree

4 files changed

+47
-2
lines changed

4 files changed

+47
-2
lines changed

openapi/openapiv2.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12886,6 +12886,19 @@
1288612886
],
1288712887
"default": "PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED"
1288812888
},
12889+
"v1PluginInfo": {
12890+
"type": "object",
12891+
"properties": {
12892+
"name": {
12893+
"type": "string",
12894+
"description": "The name of the plugin, required."
12895+
},
12896+
"version": {
12897+
"type": "string",
12898+
"description": "The version of the plugin, may be empty."
12899+
}
12900+
}
12901+
},
1288912902
"v1PollActivityTaskQueueResponse": {
1289012903
"type": "object",
1289112904
"properties": {
@@ -16003,6 +16016,14 @@
1600316016
"type": "integer",
1600416017
"format": "int32",
1600516018
"description": "Current cache size, expressed in number of Workflow Executions."
16019+
},
16020+
"plugins": {
16021+
"type": "array",
16022+
"items": {
16023+
"type": "object",
16024+
"$ref": "#/definitions/v1PluginInfo"
16025+
},
16026+
"description": "Plugins currently in use by this SDK."
1600616027
}
1600716028
},
1600816029
"description": "Worker info message, contains information about the worker and its current state.\nAll information is provided by the worker itself."

openapi/openapiv3.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9740,6 +9740,15 @@ components:
97409740
attempt:
97419741
type: integer
97429742
format: int32
9743+
PluginInfo:
9744+
type: object
9745+
properties:
9746+
name:
9747+
type: string
9748+
description: The name of the plugin, required.
9749+
version:
9750+
type: string
9751+
description: The version of the plugin, may be empty.
97439752
PollWorkflowTaskQueueResponse:
97449753
type: object
97459754
properties:
@@ -13372,6 +13381,11 @@ components:
1337213381
type: integer
1337313382
description: Current cache size, expressed in number of Workflow Executions.
1337413383
format: int32
13384+
plugins:
13385+
type: array
13386+
items:
13387+
$ref: '#/components/schemas/PluginInfo'
13388+
description: Plugins currently in use by this SDK.
1337513389
description: |-
1337613390
Worker info message, contains information about the worker and its current state.
1337713391
All information is provided by the worker itself.

temporal/api/sdk/v1/task_complete_metadata.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ message WorkflowTaskCompletedMetadata {
5151
// usually the same as client-version gRPC header. This should only be set if its value changed
5252
// since the last time recorded on the workflow (or be set on the first task).
5353
string sdk_version = 4;
54-
}
54+
}

temporal/api/worker/v1/message.proto

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,18 @@ message WorkerHeartbeat {
127127
int32 total_sticky_cache_miss = 21;
128128
// Current cache size, expressed in number of Workflow Executions.
129129
int32 current_sticky_cache_size = 22;
130+
131+
// Plugins currently in use by this SDK.
132+
repeated PluginInfo plugins = 23;
130133
}
131134

132135
message WorkerInfo {
133136
WorkerHeartbeat worker_heartbeat = 1;
134-
}
137+
}
138+
139+
message PluginInfo {
140+
// The name of the plugin, required.
141+
string name = 1;
142+
// The version of the plugin, may be empty.
143+
string version = 2;
144+
}

0 commit comments

Comments
 (0)