diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index 6bbe88f06..01e0bf9fe 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -19998,9 +19998,13 @@ "exclusiveWorker": { "type": "boolean", "description": "True when the workflow is bound to a single-session worker. Such a\nbinding never moves to another worker." + }, + "workerQueue": { + "type": "string", + "description": "The sticky queue of the worker the workflow is bound to: the stable\nidentity of a single-session worker, or the worker instance key of a\nmulti-session worker. History has no other record of it, so the server\nneeds it to restore the binding when it rebuilds the workflow from\nhistory. Always set." } }, - "description": "EXPERIMENTAL. Subject to redesign or removal.\nHow a workflow is bound to a worker. Empty for a multi-session worker." + "description": "EXPERIMENTAL. Subject to redesign or removal.\nHow a workflow is bound to a worker." }, "v1SetCurrentDeploymentResponse": { "type": "object", diff --git a/openapi/openapiv3.yaml b/openapi/openapiv3.yaml index 48a666e5d..68bd9e173 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -16874,9 +16874,17 @@ components: description: |- True when the workflow is bound to a single-session worker. Such a binding never moves to another worker. + workerQueue: + type: string + description: |- + The sticky queue of the worker the workflow is bound to: the stable + identity of a single-session worker, or the worker instance key of a + multi-session worker. History has no other record of it, so the server + needs it to restore the binding when it rebuilds the workflow from + history. Always set. description: |- EXPERIMENTAL. Subject to redesign or removal. - How a workflow is bound to a worker. Empty for a multi-session worker. + How a workflow is bound to a worker. SetCurrentDeploymentRequest: type: object properties: diff --git a/temporal/api/session/v1/message.proto b/temporal/api/session/v1/message.proto index 14bc1f912..5331a0941 100644 --- a/temporal/api/session/v1/message.proto +++ b/temporal/api/session/v1/message.proto @@ -73,9 +73,15 @@ message ActivitySessionOptions { } // EXPERIMENTAL. Subject to redesign or removal. -// How a workflow is bound to a worker. Empty for a multi-session worker. +// How a workflow is bound to a worker. message SessionInfo { // True when the workflow is bound to a single-session worker. Such a // binding never moves to another worker. bool exclusive_worker = 1; + // The sticky queue of the worker the workflow is bound to: the stable + // identity of a single-session worker, or the worker instance key of a + // multi-session worker. History has no other record of it, so the server + // needs it to restore the binding when it rebuilds the workflow from + // history. Always set. + string worker_queue = 2; }