Skip to content

Commit 76cff4d

Browse files
committed
Add worker_instance_key to RespondWorkflowTaskCompletedRequest
This enables the server to track which worker is executing eager-dispatched activities, allowing activity cancellation to be routed correctly.
1 parent e966760 commit 76cff4d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@ message RespondWorkflowTaskCompletedRequest {
376376
temporal.api.enums.v1.VersioningBehavior versioning_behavior = 16;
377377
// Worker deployment options that user has set in the worker.
378378
temporal.api.deployment.v1.WorkerDeploymentOptions deployment_options = 17;
379+
// A unique key for this worker instance, used for tracking worker lifecycle.
380+
// This is guaranteed to be unique, whereas identity is not guaranteed to be unique.
381+
// Used by server to route activity cancellation requests to the correct worker.
382+
string worker_instance_key = 18;
379383

380384
// SDK capability details.
381385
message Capabilities {

0 commit comments

Comments
 (0)