|
2780 | 2780 | }, |
2781 | 2781 | { |
2782 | 2782 | "name": "query", |
2783 | | - "description": "`query` in ListWorkers is used to filter workers based on worker status info.\nThe following worker status attributes are expected are supported as part of the query:\n* WorkerInstanceKey\n* WorkerIdentity\n* HostName\n* TaskQueue\n* DeploymentName\n* BuildId\n* SdkName\n* SdkVersion\n* StartTime\n* LastHeartbeatTime\n* Status\nCurrently metrics are not supported as a part of ListWorkers query.", |
| 2783 | + "description": "`query` in ListWorkers is used to filter workers based on worker attributes.\nSupported attributes:\n* WorkerInstanceKey\n* WorkerIdentity\n* HostName\n* TaskQueue\n* DeploymentName\n* BuildId\n* SdkName\n* SdkVersion\n* StartTime\n* Status", |
2784 | 2784 | "in": "query", |
2785 | 2785 | "required": false, |
2786 | 2786 | "type": "string" |
|
7325 | 7325 | }, |
7326 | 7326 | { |
7327 | 7327 | "name": "query", |
7328 | | - "description": "`query` in ListWorkers is used to filter workers based on worker status info.\nThe following worker status attributes are expected are supported as part of the query:\n* WorkerInstanceKey\n* WorkerIdentity\n* HostName\n* TaskQueue\n* DeploymentName\n* BuildId\n* SdkName\n* SdkVersion\n* StartTime\n* LastHeartbeatTime\n* Status\nCurrently metrics are not supported as a part of ListWorkers query.", |
| 7328 | + "description": "`query` in ListWorkers is used to filter workers based on worker attributes.\nSupported attributes:\n* WorkerInstanceKey\n* WorkerIdentity\n* HostName\n* TaskQueue\n* DeploymentName\n* BuildId\n* SdkName\n* SdkVersion\n* StartTime\n* Status", |
7329 | 7329 | "in": "query", |
7330 | 7330 | "required": false, |
7331 | 7331 | "type": "string" |
|
9291 | 9291 | "selector": { |
9292 | 9292 | "$ref": "#/definitions/v1WorkerSelector", |
9293 | 9293 | "description": "Defines which workers should receive this command.\nonly single worker is supported at this time." |
| 9294 | + }, |
| 9295 | + "resourceId": { |
| 9296 | + "type": "string", |
| 9297 | + "description": "Resource ID for routing. Contains the worker grouping key." |
9294 | 9298 | } |
9295 | 9299 | } |
9296 | 9300 | }, |
|
9404 | 9408 | "identity": { |
9405 | 9409 | "type": "string", |
9406 | 9410 | "title": "The identity of the worker/client" |
| 9411 | + }, |
| 9412 | + "resourceId": { |
| 9413 | + "type": "string", |
| 9414 | + "description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities." |
9407 | 9415 | } |
9408 | 9416 | } |
9409 | 9417 | }, |
|
9421 | 9429 | "identity": { |
9422 | 9430 | "type": "string", |
9423 | 9431 | "title": "The identity of the worker/client" |
| 9432 | + }, |
| 9433 | + "resourceId": { |
| 9434 | + "type": "string", |
| 9435 | + "description": "Resource ID for routing. Contains \"workflow:workflow_id\" or \"activity:activity_id\" for standalone activities." |
9424 | 9436 | } |
9425 | 9437 | } |
9426 | 9438 | }, |
|
9437 | 9449 | "type": "object", |
9438 | 9450 | "$ref": "#/definitions/v1WorkerHeartbeat" |
9439 | 9451 | } |
| 9452 | + }, |
| 9453 | + "resourceId": { |
| 9454 | + "type": "string", |
| 9455 | + "description": "Resource ID for routing. Contains the worker grouping key." |
9440 | 9456 | } |
9441 | 9457 | } |
9442 | 9458 | }, |
|
9606 | 9622 | "type": "string", |
9607 | 9623 | "title": "The identity of the worker/client" |
9608 | 9624 | }, |
| 9625 | + "resourceId": { |
| 9626 | + "type": "string", |
| 9627 | + "description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities." |
| 9628 | + }, |
9609 | 9629 | "workerVersion": { |
9610 | 9630 | "$ref": "#/definitions/v1WorkerVersionStamp", |
9611 | 9631 | "description": "Version info of the worker who processed this task. This message's `build_id` field should\nalways be set by SDKs. Workers opting into versioning will also set the `use_versioning`\nfield to true. See message docstrings for more.\nDeprecated. Use `deployment_options` instead." |
|
9638 | 9658 | "deploymentOptions": { |
9639 | 9659 | "$ref": "#/definitions/v1WorkerDeploymentOptions", |
9640 | 9660 | "description": "Worker deployment options that user has set in the worker." |
| 9661 | + }, |
| 9662 | + "resourceId": { |
| 9663 | + "type": "string", |
| 9664 | + "description": "Resource ID for routing. Contains \"workflow:workflow_id\" or \"activity:activity_id\" for standalone activities." |
9641 | 9665 | } |
9642 | 9666 | } |
9643 | 9667 | }, |
|
9657 | 9681 | "type": "string", |
9658 | 9682 | "title": "The identity of the worker/client" |
9659 | 9683 | }, |
| 9684 | + "resourceId": { |
| 9685 | + "type": "string", |
| 9686 | + "description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities." |
| 9687 | + }, |
9660 | 9688 | "workerVersion": { |
9661 | 9689 | "$ref": "#/definitions/v1WorkerVersionStamp", |
9662 | 9690 | "description": "Version info of the worker who processed this task. This message's `build_id` field should\nalways be set by SDKs. Workers opting into versioning will also set the `use_versioning`\nfield to true. See message docstrings for more.\nDeprecated. Use `deployment_options` instead." |
|
9685 | 9713 | "identity": { |
9686 | 9714 | "type": "string", |
9687 | 9715 | "title": "The identity of the worker/client" |
| 9716 | + }, |
| 9717 | + "resourceId": { |
| 9718 | + "type": "string", |
| 9719 | + "description": "Resource ID for routing. Contains \"workflow:workflow_id\" or \"activity:activity_id\" for standalone activities." |
9688 | 9720 | } |
9689 | 9721 | } |
9690 | 9722 | }, |
|
9704 | 9736 | "type": "string", |
9705 | 9737 | "title": "The identity of the worker/client" |
9706 | 9738 | }, |
| 9739 | + "resourceId": { |
| 9740 | + "type": "string", |
| 9741 | + "description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities." |
| 9742 | + }, |
9707 | 9743 | "lastHeartbeatDetails": { |
9708 | 9744 | "$ref": "#/definitions/v1Payloads", |
9709 | 9745 | "title": "Additional details to be stored as last activity heartbeat" |
|
9740 | 9776 | "lastHeartbeatDetails": { |
9741 | 9777 | "$ref": "#/definitions/v1Payloads", |
9742 | 9778 | "title": "Additional details to be stored as last activity heartbeat" |
| 9779 | + }, |
| 9780 | + "resourceId": { |
| 9781 | + "type": "string", |
| 9782 | + "description": "Resource ID for routing. Contains \"workflow:workflow_id\" or \"activity:activity_id\" for standalone activities." |
9743 | 9783 | } |
9744 | 9784 | } |
9745 | 9785 | }, |
|
10524 | 10564 | "selector": { |
10525 | 10565 | "$ref": "#/definitions/v1WorkerSelector", |
10526 | 10566 | "description": "Defines which workers should receive this command." |
| 10567 | + }, |
| 10568 | + "resourceId": { |
| 10569 | + "type": "string", |
| 10570 | + "description": "Resource ID for routing. Contains the worker grouping key." |
10527 | 10571 | } |
10528 | 10572 | } |
10529 | 10573 | }, |
|
12210 | 12254 | } |
12211 | 12255 | } |
12212 | 12256 | }, |
| 12257 | + "v1DeclinedTargetVersionUpgrade": { |
| 12258 | + "type": "object", |
| 12259 | + "properties": { |
| 12260 | + "deploymentVersion": { |
| 12261 | + "$ref": "#/definitions/v1WorkerDeploymentVersion" |
| 12262 | + } |
| 12263 | + }, |
| 12264 | + "description": "Wrapper for a target deployment version that the SDK declined to upgrade to.\nSee declined_target_version_upgrade on WorkflowExecutionStartedEventAttributes." |
| 12265 | + }, |
12213 | 12266 | "v1DeleteNexusEndpointResponse": { |
12214 | 12267 | "type": "object" |
12215 | 12268 | }, |
|
13599 | 13652 | "items": { |
13600 | 13653 | "type": "object", |
13601 | 13654 | "$ref": "#/definitions/v1WorkerInfo" |
13602 | | - } |
| 13655 | + }, |
| 13656 | + "description": "Deprecated: Use workers instead. This field returns full WorkerInfo which\nincludes expensive runtime metrics. We will stop populating this field in the future." |
| 13657 | + }, |
| 13658 | + "workers": { |
| 13659 | + "type": "array", |
| 13660 | + "items": { |
| 13661 | + "type": "object", |
| 13662 | + "$ref": "#/definitions/v1WorkerListInfo" |
| 13663 | + }, |
| 13664 | + "description": "Limited worker information." |
13603 | 13665 | }, |
13604 | 13666 | "nextPageToken": { |
13605 | 13667 | "type": "string", |
|
13844 | 13906 | "workerPollCompleteOnShutdown": { |
13845 | 13907 | "type": "boolean", |
13846 | 13908 | "description": "True if the namespace supports server-side completion of outstanding worker polls on shutdown.\nWhen enabled, the server will complete polls for workers that send WorkerInstanceKey in their\npoll requests and call ShutdownWorker with the same WorkerInstanceKey. The poll will return\nan empty response. When this flag is true, workers should allow polls to return gracefully\nrather than terminating any open polls on shutdown." |
| 13909 | + }, |
| 13910 | + "pollerAutoscaling": { |
| 13911 | + "type": "boolean", |
| 13912 | + "title": "True if the namespace supports poller autoscaling" |
13847 | 13913 | } |
13848 | 13914 | }, |
13849 | 13915 | "description": "Namespace capability details. Should contain what features are enabled in a namespace." |
|
16034 | 16100 | "v1StopBatchOperationResponse": { |
16035 | 16101 | "type": "object" |
16036 | 16102 | }, |
| 16103 | + "v1StorageDriverInfo": { |
| 16104 | + "type": "object", |
| 16105 | + "properties": { |
| 16106 | + "type": { |
| 16107 | + "type": "string", |
| 16108 | + "description": "The type of the driver, required." |
| 16109 | + } |
| 16110 | + } |
| 16111 | + }, |
16037 | 16112 | "v1StructuredCalendarSpec": { |
16038 | 16113 | "type": "object", |
16039 | 16114 | "properties": { |
|
17063 | 17138 | "$ref": "#/definitions/v1PluginInfo" |
17064 | 17139 | }, |
17065 | 17140 | "description": "Plugins currently in use by this SDK." |
| 17141 | + }, |
| 17142 | + "drivers": { |
| 17143 | + "type": "array", |
| 17144 | + "items": { |
| 17145 | + "type": "object", |
| 17146 | + "$ref": "#/definitions/v1StorageDriverInfo" |
| 17147 | + }, |
| 17148 | + "description": "Storage drivers in use by this SDK." |
17066 | 17149 | } |
17067 | 17150 | }, |
17068 | 17151 | "description": "Worker info message, contains information about the worker and its current state.\nAll information is provided by the worker itself." |
|
17101 | 17184 | "workerHeartbeat": { |
17102 | 17185 | "$ref": "#/definitions/v1WorkerHeartbeat" |
17103 | 17186 | } |
17104 | | - } |
| 17187 | + }, |
| 17188 | + "description": "Detailed worker information." |
| 17189 | + }, |
| 17190 | + "v1WorkerListInfo": { |
| 17191 | + "type": "object", |
| 17192 | + "properties": { |
| 17193 | + "workerInstanceKey": { |
| 17194 | + "type": "string", |
| 17195 | + "description": "Worker identifier, should be unique for the namespace.\nIt is distinct from worker identity, which is not necessarily namespace-unique." |
| 17196 | + }, |
| 17197 | + "workerIdentity": { |
| 17198 | + "type": "string", |
| 17199 | + "description": "Worker identity, set by the client, may not be unique.\nUsually host_name+(user group name)+process_id, but can be overwritten by the user." |
| 17200 | + }, |
| 17201 | + "taskQueue": { |
| 17202 | + "type": "string", |
| 17203 | + "description": "Task queue this worker is polling for tasks." |
| 17204 | + }, |
| 17205 | + "deploymentVersion": { |
| 17206 | + "$ref": "#/definitions/v1WorkerDeploymentVersion" |
| 17207 | + }, |
| 17208 | + "sdkName": { |
| 17209 | + "type": "string" |
| 17210 | + }, |
| 17211 | + "sdkVersion": { |
| 17212 | + "type": "string" |
| 17213 | + }, |
| 17214 | + "status": { |
| 17215 | + "$ref": "#/definitions/v1WorkerStatus", |
| 17216 | + "description": "Worker status. Defined by SDK." |
| 17217 | + }, |
| 17218 | + "startTime": { |
| 17219 | + "type": "string", |
| 17220 | + "format": "date-time", |
| 17221 | + "title": "Worker start time.\nIt can be used to determine worker uptime. (current time - start time)" |
| 17222 | + }, |
| 17223 | + "hostName": { |
| 17224 | + "type": "string", |
| 17225 | + "description": "Worker host identifier." |
| 17226 | + }, |
| 17227 | + "workerGroupingKey": { |
| 17228 | + "type": "string", |
| 17229 | + "title": "Worker grouping identifier. A key to group workers that share the same client+namespace+process.\nThis will be used to build the worker command nexus task queue name:\n\"temporal-sys/worker-commands/{worker_grouping_key}\"" |
| 17230 | + }, |
| 17231 | + "processId": { |
| 17232 | + "type": "string", |
| 17233 | + "description": "Worker process identifier. This id only needs to be unique\nwithin one host (so using e.g. a unix pid would be appropriate)." |
| 17234 | + }, |
| 17235 | + "plugins": { |
| 17236 | + "type": "array", |
| 17237 | + "items": { |
| 17238 | + "type": "object", |
| 17239 | + "$ref": "#/definitions/v1PluginInfo" |
| 17240 | + }, |
| 17241 | + "description": "Plugins currently in use by this SDK." |
| 17242 | + }, |
| 17243 | + "drivers": { |
| 17244 | + "type": "array", |
| 17245 | + "items": { |
| 17246 | + "type": "object", |
| 17247 | + "$ref": "#/definitions/v1StorageDriverInfo" |
| 17248 | + }, |
| 17249 | + "description": "Storage drivers in use by this SDK." |
| 17250 | + } |
| 17251 | + }, |
| 17252 | + "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)." |
17105 | 17253 | }, |
17106 | 17254 | "v1WorkerPollerInfo": { |
17107 | 17255 | "type": "object", |
|
17802 | 17950 | "eagerExecutionAccepted": { |
17803 | 17951 | "type": "boolean", |
17804 | 17952 | "description": "A boolean indicating whether the SDK has asked to eagerly execute the first workflow task for this workflow and\neager execution was accepted by the server.\nOnly populated by server with version >= 1.29.0." |
| 17953 | + }, |
| 17954 | + "declinedTargetVersionUpgrade": { |
| 17955 | + "$ref": "#/definitions/v1DeclinedTargetVersionUpgrade", |
| 17956 | + "description": "During a previous run of this workflow, the server may have notified the SDK\nthat the Target Worker Deployment Version changed, but the SDK declined to\nupgrade (e.g., by continuing-as-new with PINNED behavior). This field records\nthe target version that was declined.\n\nThis is a wrapper message to distinguish \"never declined\" (nil wrapper) from\n\"declined an unversioned target\" (non-nil wrapper with nil deployment_version).\n\nUsed internally by the server during continue-as-new and retry.\nShould not be read or interpreted by SDKs." |
17805 | 17957 | } |
17806 | 17958 | }, |
17807 | 17959 | "title": "Always the first event in workflow history" |
|
0 commit comments