Skip to content

Commit ed4d70d

Browse files
committed
Add runtime type information to worker heartbeats
1 parent e88aaf2 commit ed4d70d

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

temporal/api/worker/v1/message.proto

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

131131
// Storage drivers in use by this SDK.
132132
repeated StorageDriverInfo drivers = 24;
133+
134+
// Runtime environments in use by this SDK. Often will only be one of these, but it's allowed to
135+
// be repeated for scenarios like "Python inside a Lambda".
136+
repeated RuntimeInfo runtimes = 25;
133137
}
134138

135139
// Detailed worker information.
@@ -194,6 +198,25 @@ message StorageDriverInfo {
194198
string type = 1;
195199
}
196200

201+
message RuntimeInfo {
202+
enum RuntimeType {
203+
RUNTIME_TYPE_UNSPECIFIED = 0;
204+
RUNTIME_TYPE_JVM = 1;
205+
RUNTIME_TYPE_PYTHON = 2;
206+
RUNTIME_TYPE_NODE = 3;
207+
RUNTIME_TYPE_BUN = 4;
208+
RUNTIME_TYPE_RUBY = 5;
209+
RUNTIME_TYPE_GO = 6;
210+
RUNTIME_TYPE_DOCKER = 7;
211+
RUNTIME_TYPE_LAMBDA = 8;
212+
RUNTIME_TYPE_GCR = 9;
213+
}
214+
// The type of the runtime.
215+
RuntimeType type = 1;
216+
// The version of the runtime.
217+
string version = 2;
218+
}
219+
197220
// A command sent from the server to a worker.
198221
message WorkerCommand {
199222
oneof type {

0 commit comments

Comments
 (0)