|
2296 | 2296 | ] |
2297 | 2297 | } |
2298 | 2298 | }, |
| 2299 | + "/api/v1/namespaces/{namespace}/workers/fetch-config": { |
| 2300 | + "post": { |
| 2301 | + "summary": "FetchWorkerConfig returns the worker configuration for a specific worker.", |
| 2302 | + "operationId": "FetchWorkerConfig2", |
| 2303 | + "responses": { |
| 2304 | + "200": { |
| 2305 | + "description": "A successful response.", |
| 2306 | + "schema": { |
| 2307 | + "$ref": "#/definitions/v1FetchWorkerConfigResponse" |
| 2308 | + } |
| 2309 | + }, |
| 2310 | + "default": { |
| 2311 | + "description": "An unexpected error response.", |
| 2312 | + "schema": { |
| 2313 | + "$ref": "#/definitions/rpcStatus" |
| 2314 | + } |
| 2315 | + } |
| 2316 | + }, |
| 2317 | + "parameters": [ |
| 2318 | + { |
| 2319 | + "name": "namespace", |
| 2320 | + "description": "Namespace this worker belongs to.", |
| 2321 | + "in": "path", |
| 2322 | + "required": true, |
| 2323 | + "type": "string" |
| 2324 | + }, |
| 2325 | + { |
| 2326 | + "name": "body", |
| 2327 | + "in": "body", |
| 2328 | + "required": true, |
| 2329 | + "schema": { |
| 2330 | + "$ref": "#/definitions/WorkflowServiceFetchWorkerConfigBody" |
| 2331 | + } |
| 2332 | + } |
| 2333 | + ], |
| 2334 | + "tags": [ |
| 2335 | + "WorkflowService" |
| 2336 | + ] |
| 2337 | + } |
| 2338 | + }, |
2299 | 2339 | "/api/v1/namespaces/{namespace}/workers/heartbeat": { |
2300 | 2340 | "post": { |
2301 | 2341 | "summary": "WorkerHeartbeat receive heartbeat request from the worker.", |
|
2336 | 2376 | ] |
2337 | 2377 | } |
2338 | 2378 | }, |
| 2379 | + "/api/v1/namespaces/{namespace}/workers/update-config": { |
| 2380 | + "post": { |
| 2381 | + "summary": "UpdateWorkerConfig updates the worker configuration of one or more workers.\nCan be used to partially update the worker configuration.\nCan be used to update the configuration of multiple workers.", |
| 2382 | + "operationId": "UpdateWorkerConfig2", |
| 2383 | + "responses": { |
| 2384 | + "200": { |
| 2385 | + "description": "A successful response.", |
| 2386 | + "schema": { |
| 2387 | + "$ref": "#/definitions/v1UpdateWorkerConfigResponse" |
| 2388 | + } |
| 2389 | + }, |
| 2390 | + "default": { |
| 2391 | + "description": "An unexpected error response.", |
| 2392 | + "schema": { |
| 2393 | + "$ref": "#/definitions/rpcStatus" |
| 2394 | + } |
| 2395 | + } |
| 2396 | + }, |
| 2397 | + "parameters": [ |
| 2398 | + { |
| 2399 | + "name": "namespace", |
| 2400 | + "description": "Namespace this worker belongs to.", |
| 2401 | + "in": "path", |
| 2402 | + "required": true, |
| 2403 | + "type": "string" |
| 2404 | + }, |
| 2405 | + { |
| 2406 | + "name": "body", |
| 2407 | + "in": "body", |
| 2408 | + "required": true, |
| 2409 | + "schema": { |
| 2410 | + "$ref": "#/definitions/WorkflowServiceUpdateWorkerConfigBody" |
| 2411 | + } |
| 2412 | + } |
| 2413 | + ], |
| 2414 | + "tags": [ |
| 2415 | + "WorkflowService" |
| 2416 | + ] |
| 2417 | + } |
| 2418 | + }, |
2339 | 2419 | "/api/v1/namespaces/{namespace}/workflow-count": { |
2340 | 2420 | "get": { |
2341 | 2421 | "summary": "CountWorkflowExecutions is a visibility API to count of workflow executions in a specific namespace.", |
|
5957 | 6037 | ] |
5958 | 6038 | } |
5959 | 6039 | }, |
| 6040 | + "/namespaces/{namespace}/workers/fetch-config": { |
| 6041 | + "post": { |
| 6042 | + "summary": "FetchWorkerConfig returns the worker configuration for a specific worker.", |
| 6043 | + "operationId": "FetchWorkerConfig", |
| 6044 | + "responses": { |
| 6045 | + "200": { |
| 6046 | + "description": "A successful response.", |
| 6047 | + "schema": { |
| 6048 | + "$ref": "#/definitions/v1FetchWorkerConfigResponse" |
| 6049 | + } |
| 6050 | + }, |
| 6051 | + "default": { |
| 6052 | + "description": "An unexpected error response.", |
| 6053 | + "schema": { |
| 6054 | + "$ref": "#/definitions/rpcStatus" |
| 6055 | + } |
| 6056 | + } |
| 6057 | + }, |
| 6058 | + "parameters": [ |
| 6059 | + { |
| 6060 | + "name": "namespace", |
| 6061 | + "description": "Namespace this worker belongs to.", |
| 6062 | + "in": "path", |
| 6063 | + "required": true, |
| 6064 | + "type": "string" |
| 6065 | + }, |
| 6066 | + { |
| 6067 | + "name": "body", |
| 6068 | + "in": "body", |
| 6069 | + "required": true, |
| 6070 | + "schema": { |
| 6071 | + "$ref": "#/definitions/WorkflowServiceFetchWorkerConfigBody" |
| 6072 | + } |
| 6073 | + } |
| 6074 | + ], |
| 6075 | + "tags": [ |
| 6076 | + "WorkflowService" |
| 6077 | + ] |
| 6078 | + } |
| 6079 | + }, |
5960 | 6080 | "/namespaces/{namespace}/workers/heartbeat": { |
5961 | 6081 | "post": { |
5962 | 6082 | "summary": "WorkerHeartbeat receive heartbeat request from the worker.", |
|
5997 | 6117 | ] |
5998 | 6118 | } |
5999 | 6119 | }, |
| 6120 | + "/namespaces/{namespace}/workers/update-config": { |
| 6121 | + "post": { |
| 6122 | + "summary": "UpdateWorkerConfig updates the worker configuration of one or more workers.\nCan be used to partially update the worker configuration.\nCan be used to update the configuration of multiple workers.", |
| 6123 | + "operationId": "UpdateWorkerConfig", |
| 6124 | + "responses": { |
| 6125 | + "200": { |
| 6126 | + "description": "A successful response.", |
| 6127 | + "schema": { |
| 6128 | + "$ref": "#/definitions/v1UpdateWorkerConfigResponse" |
| 6129 | + } |
| 6130 | + }, |
| 6131 | + "default": { |
| 6132 | + "description": "An unexpected error response.", |
| 6133 | + "schema": { |
| 6134 | + "$ref": "#/definitions/rpcStatus" |
| 6135 | + } |
| 6136 | + } |
| 6137 | + }, |
| 6138 | + "parameters": [ |
| 6139 | + { |
| 6140 | + "name": "namespace", |
| 6141 | + "description": "Namespace this worker belongs to.", |
| 6142 | + "in": "path", |
| 6143 | + "required": true, |
| 6144 | + "type": "string" |
| 6145 | + }, |
| 6146 | + { |
| 6147 | + "name": "body", |
| 6148 | + "in": "body", |
| 6149 | + "required": true, |
| 6150 | + "schema": { |
| 6151 | + "$ref": "#/definitions/WorkflowServiceUpdateWorkerConfigBody" |
| 6152 | + } |
| 6153 | + } |
| 6154 | + ], |
| 6155 | + "tags": [ |
| 6156 | + "WorkflowService" |
| 6157 | + ] |
| 6158 | + } |
| 6159 | + }, |
6000 | 6160 | "/namespaces/{namespace}/workflow-count": { |
6001 | 6161 | "get": { |
6002 | 6162 | "summary": "CountWorkflowExecutions is a visibility API to count of workflow executions in a specific namespace.", |
|
7446 | 7606 | "default": "PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED", |
7447 | 7607 | "description": "Used to specify different sub-types of Pinned override that we plan to add in the future.\n\n - PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED: Unspecified.\n - PINNED_OVERRIDE_BEHAVIOR_PINNED: Override workflow behavior to be Pinned." |
7448 | 7608 | }, |
| 7609 | + "WorkerConfigAutoscalingPollerBehavior": { |
| 7610 | + "type": "object", |
| 7611 | + "properties": { |
| 7612 | + "minPollers": { |
| 7613 | + "type": "integer", |
| 7614 | + "format": "int32", |
| 7615 | + "description": "At least this many poll calls will always be attempted (assuming slots are available).\nCannot be zero." |
| 7616 | + }, |
| 7617 | + "maxPollers": { |
| 7618 | + "type": "integer", |
| 7619 | + "format": "int32", |
| 7620 | + "description": "At most this many poll calls will ever be open at once. Must be >= `minimum`." |
| 7621 | + }, |
| 7622 | + "initialPollers": { |
| 7623 | + "type": "integer", |
| 7624 | + "format": "int32", |
| 7625 | + "description": "This many polls will be attempted initially before scaling kicks in. Must be between\n `minimum` and `maximum`." |
| 7626 | + } |
| 7627 | + } |
| 7628 | + }, |
| 7629 | + "WorkerConfigSimplePollerBehavior": { |
| 7630 | + "type": "object", |
| 7631 | + "properties": { |
| 7632 | + "maxPollers": { |
| 7633 | + "type": "integer", |
| 7634 | + "format": "int32" |
| 7635 | + } |
| 7636 | + } |
| 7637 | + }, |
7449 | 7638 | "WorkerDeploymentInfoWorkerDeploymentVersionSummary": { |
7450 | 7639 | "type": "object", |
7451 | 7640 | "properties": { |
|
7615 | 7804 | } |
7616 | 7805 | } |
7617 | 7806 | }, |
| 7807 | + "WorkflowServiceFetchWorkerConfigBody": { |
| 7808 | + "type": "object", |
| 7809 | + "properties": { |
| 7810 | + "identity": { |
| 7811 | + "type": "string", |
| 7812 | + "description": "The identity of the client who initiated this request." |
| 7813 | + }, |
| 7814 | + "reason": { |
| 7815 | + "type": "string", |
| 7816 | + "description": "Reason for sending worker command, can be used for audit purpose." |
| 7817 | + }, |
| 7818 | + "selector": { |
| 7819 | + "$ref": "#/definitions/v1WorkerSelector", |
| 7820 | + "description": "Defines which workers should receive this command.\nonly single worker is supported at this time." |
| 7821 | + } |
| 7822 | + } |
| 7823 | + }, |
7618 | 7824 | "WorkflowServicePatchScheduleBody": { |
7619 | 7825 | "type": "object", |
7620 | 7826 | "properties": { |
|
8652 | 8858 | } |
8653 | 8859 | } |
8654 | 8860 | }, |
| 8861 | + "WorkflowServiceUpdateWorkerConfigBody": { |
| 8862 | + "type": "object", |
| 8863 | + "properties": { |
| 8864 | + "identity": { |
| 8865 | + "type": "string", |
| 8866 | + "description": "The identity of the client who initiated this request." |
| 8867 | + }, |
| 8868 | + "reason": { |
| 8869 | + "type": "string", |
| 8870 | + "description": "Reason for sending worker command, can be used for audit purpose." |
| 8871 | + }, |
| 8872 | + "workerConfig": { |
| 8873 | + "$ref": "#/definitions/v1WorkerConfig", |
| 8874 | + "description": "Partial updates are accepted and controlled by update_mask.\nThe worker configuration to set." |
| 8875 | + }, |
| 8876 | + "updateMask": { |
| 8877 | + "type": "string", |
| 8878 | + "title": "Controls which fields from `worker_config` will be applied" |
| 8879 | + }, |
| 8880 | + "selector": { |
| 8881 | + "$ref": "#/definitions/v1WorkerSelector", |
| 8882 | + "description": "Defines which workers should receive this command." |
| 8883 | + } |
| 8884 | + } |
| 8885 | + }, |
8655 | 8886 | "WorkflowServiceUpdateWorkerDeploymentVersionMetadataBody": { |
8656 | 8887 | "type": "object", |
8657 | 8888 | "properties": { |
|
10913 | 11144 | }, |
10914 | 11145 | "title": "Represents a historical replication status of a Namespace" |
10915 | 11146 | }, |
| 11147 | + "v1FetchWorkerConfigResponse": { |
| 11148 | + "type": "object", |
| 11149 | + "properties": { |
| 11150 | + "workerConfig": { |
| 11151 | + "$ref": "#/definitions/v1WorkerConfig", |
| 11152 | + "description": "The worker configuration." |
| 11153 | + } |
| 11154 | + } |
| 11155 | + }, |
10916 | 11156 | "v1GetClusterInfoResponse": { |
10917 | 11157 | "type": "object", |
10918 | 11158 | "properties": { |
|
15242 | 15482 | "type": "object", |
15243 | 15483 | "title": "[cleanup-wv-pre-release]" |
15244 | 15484 | }, |
| 15485 | + "v1UpdateWorkerConfigResponse": { |
| 15486 | + "type": "object", |
| 15487 | + "properties": { |
| 15488 | + "workerConfig": { |
| 15489 | + "$ref": "#/definitions/v1WorkerConfig", |
| 15490 | + "description": "The worker configuration. Will be returned if the command was sent to a single worker." |
| 15491 | + } |
| 15492 | + } |
| 15493 | + }, |
15245 | 15494 | "v1UpdateWorkerDeploymentVersionMetadataResponse": { |
15246 | 15495 | "type": "object", |
15247 | 15496 | "properties": { |
|
15487 | 15736 | }, |
15488 | 15737 | "description": "Specifies client's intent to wait for Update results." |
15489 | 15738 | }, |
| 15739 | + "v1WorkerConfig": { |
| 15740 | + "type": "object", |
| 15741 | + "properties": { |
| 15742 | + "workflowCacheSize": { |
| 15743 | + "type": "integer", |
| 15744 | + "format": "int32" |
| 15745 | + }, |
| 15746 | + "simplePollerBehavior": { |
| 15747 | + "$ref": "#/definitions/WorkerConfigSimplePollerBehavior" |
| 15748 | + }, |
| 15749 | + "autoscalingPollerBehavior": { |
| 15750 | + "$ref": "#/definitions/WorkerConfigAutoscalingPollerBehavior" |
| 15751 | + } |
| 15752 | + } |
| 15753 | + }, |
15490 | 15754 | "v1WorkerDeploymentInfo": { |
15491 | 15755 | "type": "object", |
15492 | 15756 | "properties": { |
|
15774 | 16038 | } |
15775 | 16039 | } |
15776 | 16040 | }, |
| 16041 | + "v1WorkerSelector": { |
| 16042 | + "type": "object", |
| 16043 | + "properties": { |
| 16044 | + "workerInstanceKey": { |
| 16045 | + "type": "string", |
| 16046 | + "description": "Worker instance key to which the command should be sent." |
| 16047 | + } |
| 16048 | + }, |
| 16049 | + "description": "This is used to send commands to a specific worker or a group of workers.\nRight now, it is used to send commands to a specific worker instance.\nWill be extended to be able to send command to multiple workers." |
| 16050 | + }, |
15777 | 16051 | "v1WorkerSlotsInfo": { |
15778 | 16052 | "type": "object", |
15779 | 16053 | "properties": { |
|
0 commit comments