Skip to content

Commit 5427772

Browse files
feat: add worker runtime info to heartbeat
1 parent 2547d30 commit 5427772

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

openapi/openapiv2.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15264,6 +15264,20 @@
1526415264
"default": "ROUTING_CONFIG_UPDATE_STATE_UNSPECIFIED",
1526515265
"description": "Indicates whether a change to the Routing Config has been\npropagated to all relevant Task Queues and their partitions.\n\n - ROUTING_CONFIG_UPDATE_STATE_IN_PROGRESS: Update to the RoutingConfig is currently in progress.\n - ROUTING_CONFIG_UPDATE_STATE_COMPLETED: Update to the RoutingConfig has completed successfully."
1526615266
},
15267+
"v1RuntimeInfo": {
15268+
"type": "object",
15269+
"properties": {
15270+
"name": {
15271+
"type": "string",
15272+
"title": "Runtime name"
15273+
},
15274+
"version": {
15275+
"type": "string",
15276+
"title": "Runtime version"
15277+
}
15278+
},
15279+
"description": "Information about the language runtime executing the worker."
15280+
},
1526715281
"v1Schedule": {
1526815282
"type": "object",
1526915283
"properties": {
@@ -16990,6 +17004,10 @@
1699017004
"$ref": "#/definitions/v1StorageDriverInfo"
1699117005
},
1699217006
"description": "Storage drivers in use by this SDK."
17007+
},
17008+
"runtimeInfo": {
17009+
"$ref": "#/definitions/v1RuntimeInfo",
17010+
"description": "Information about the language runtime executing the worker."
1699317011
}
1699417012
},
1699517013
"description": "Worker info message, contains information about the worker and its current state.\nAll information is provided by the worker itself."
@@ -17091,6 +17109,10 @@
1709117109
"$ref": "#/definitions/v1StorageDriverInfo"
1709217110
},
1709317111
"description": "Storage drivers in use by this SDK."
17112+
},
17113+
"runtimeInfo": {
17114+
"$ref": "#/definitions/v1RuntimeInfo",
17115+
"description": "Information about the language runtime executing the worker."
1709417116
}
1709517117
},
1709617118
"description": "Limited worker information returned in the list response.\nWhen adding fields here, ensure that it is also added to WorkerInfo (as it carries the full worker information)."

openapi/openapiv3.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12792,6 +12792,16 @@ components:
1279212792
revisionNumber:
1279312793
type: string
1279412794
description: "Monotonically increasing value which is incremented on every mutation \n to any field of this message to achieve eventual consistency between task queues and their partitions."
12795+
RuntimeInfo:
12796+
type: object
12797+
properties:
12798+
name:
12799+
type: string
12800+
description: Runtime name
12801+
version:
12802+
type: string
12803+
description: Runtime version
12804+
description: Information about the language runtime executing the worker.
1279512805
Schedule:
1279612806
type: object
1279712807
properties:
@@ -15590,6 +15600,10 @@ components:
1559015600
items:
1559115601
$ref: '#/components/schemas/StorageDriverInfo'
1559215602
description: Storage drivers in use by this SDK.
15603+
runtimeInfo:
15604+
allOf:
15605+
- $ref: '#/components/schemas/RuntimeInfo'
15606+
description: Information about the language runtime executing the worker.
1559315607
description: |-
1559415608
Worker info message, contains information about the worker and its current state.
1559515609
All information is provided by the worker itself.
@@ -15692,6 +15706,10 @@ components:
1569215706
items:
1569315707
$ref: '#/components/schemas/StorageDriverInfo'
1569415708
description: Storage drivers in use by this SDK.
15709+
runtimeInfo:
15710+
allOf:
15711+
- $ref: '#/components/schemas/RuntimeInfo'
15712+
description: Information about the language runtime executing the worker.
1569515713
description: |-
1569615714
Limited worker information returned in the list response.
1569715715
When adding fields here, ensure that it is also added to WorkerInfo (as it carries the full worker information).

temporal/api/worker/v1/message.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ message WorkerHeartbeat {
130130

131131
// Storage drivers in use by this SDK.
132132
repeated StorageDriverInfo drivers = 24;
133+
134+
// Information about the language runtime executing the worker.
135+
RuntimeInfo runtime_info = 25;
133136
}
134137

135138
// Detailed worker information.
@@ -180,6 +183,9 @@ message WorkerListInfo {
180183

181184
// Storage drivers in use by this SDK.
182185
repeated StorageDriverInfo drivers = 13;
186+
187+
// Information about the language runtime executing the worker.
188+
RuntimeInfo runtime_info = 14;
183189
}
184190

185191
message PluginInfo {
@@ -193,3 +199,11 @@ message StorageDriverInfo {
193199
// The type of the driver, required.
194200
string type = 1;
195201
}
202+
203+
// Information about the language runtime executing the worker.
204+
message RuntimeInfo {
205+
// Runtime name
206+
string name = 1;
207+
// Runtime version
208+
string version = 2;
209+
}

0 commit comments

Comments
 (0)