Skip to content

Commit b33a747

Browse files
committed
extract DescribeWorker API into separate PR
1 parent 4075c0e commit b33a747

File tree

4 files changed

+0
-179
lines changed

4 files changed

+0
-179
lines changed

openapi/openapiv2.json

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -2296,45 +2296,6 @@
22962296
]
22972297
}
22982298
},
2299-
"/api/v1/namespaces/{namespace}/workers/describe/{workerInstanceKey}": {
2300-
"get": {
2301-
"summary": "DescribeWorker returns information about the specified worker execution.",
2302-
"operationId": "DescribeWorker2",
2303-
"responses": {
2304-
"200": {
2305-
"description": "A successful response.",
2306-
"schema": {
2307-
"$ref": "#/definitions/v1DescribeWorkerResponse"
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": "workerInstanceKey",
2327-
"description": "Worker instance key to describe.",
2328-
"in": "path",
2329-
"required": true,
2330-
"type": "string"
2331-
}
2332-
],
2333-
"tags": [
2334-
"WorkflowService"
2335-
]
2336-
}
2337-
},
23382299
"/api/v1/namespaces/{namespace}/workers/fetch-config": {
23392300
"post": {
23402301
"summary": "FetchWorkerConfig returns the worker configuration for a specific worker.",
@@ -6076,45 +6037,6 @@
60766037
]
60776038
}
60786039
},
6079-
"/namespaces/{namespace}/workers/describe/{workerInstanceKey}": {
6080-
"get": {
6081-
"summary": "DescribeWorker returns information about the specified worker execution.",
6082-
"operationId": "DescribeWorker",
6083-
"responses": {
6084-
"200": {
6085-
"description": "A successful response.",
6086-
"schema": {
6087-
"$ref": "#/definitions/v1DescribeWorkerResponse"
6088-
}
6089-
},
6090-
"default": {
6091-
"description": "An unexpected error response.",
6092-
"schema": {
6093-
"$ref": "#/definitions/rpcStatus"
6094-
}
6095-
}
6096-
},
6097-
"parameters": [
6098-
{
6099-
"name": "namespace",
6100-
"description": "Namespace this worker belongs to.",
6101-
"in": "path",
6102-
"required": true,
6103-
"type": "string"
6104-
},
6105-
{
6106-
"name": "workerInstanceKey",
6107-
"description": "Worker instance key to describe.",
6108-
"in": "path",
6109-
"required": true,
6110-
"type": "string"
6111-
}
6112-
],
6113-
"tags": [
6114-
"WorkflowService"
6115-
]
6116-
}
6117-
},
61186040
"/namespaces/{namespace}/workers/fetch-config": {
61196041
"post": {
61206042
"summary": "FetchWorkerConfig returns the worker configuration for a specific worker.",
@@ -10953,14 +10875,6 @@
1095310875
}
1095410876
}
1095510877
},
10956-
"v1DescribeWorkerResponse": {
10957-
"type": "object",
10958-
"properties": {
10959-
"workerInfo": {
10960-
"$ref": "#/definitions/v1WorkerInfo"
10961-
}
10962-
}
10963-
},
1096410878
"v1DescribeWorkflowExecutionResponse": {
1096510879
"type": "object",
1096610880
"properties": {

openapi/openapiv3.yaml

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,38 +2087,6 @@ paths:
20872087
application/json:
20882088
schema:
20892089
$ref: '#/components/schemas/Status'
2090-
/api/v1/namespaces/{namespace}/workers/describe/{workerInstanceKey}:
2091-
get:
2092-
tags:
2093-
- WorkflowService
2094-
description: DescribeWorker returns information about the specified worker execution.
2095-
operationId: DescribeWorker
2096-
parameters:
2097-
- name: namespace
2098-
in: path
2099-
description: Namespace this worker belongs to.
2100-
required: true
2101-
schema:
2102-
type: string
2103-
- name: workerInstanceKey
2104-
in: path
2105-
description: Worker instance key to describe.
2106-
required: true
2107-
schema:
2108-
type: string
2109-
responses:
2110-
"200":
2111-
description: OK
2112-
content:
2113-
application/json:
2114-
schema:
2115-
$ref: '#/components/schemas/DescribeWorkerResponse'
2116-
default:
2117-
description: Default error response
2118-
content:
2119-
application/json:
2120-
schema:
2121-
$ref: '#/components/schemas/Status'
21222090
/api/v1/namespaces/{namespace}/workers/fetch-config:
21232091
post:
21242092
tags:
@@ -5470,38 +5438,6 @@ paths:
54705438
application/json:
54715439
schema:
54725440
$ref: '#/components/schemas/Status'
5473-
/namespaces/{namespace}/workers/describe/{workerInstanceKey}:
5474-
get:
5475-
tags:
5476-
- WorkflowService
5477-
description: DescribeWorker returns information about the specified worker execution.
5478-
operationId: DescribeWorker
5479-
parameters:
5480-
- name: namespace
5481-
in: path
5482-
description: Namespace this worker belongs to.
5483-
required: true
5484-
schema:
5485-
type: string
5486-
- name: workerInstanceKey
5487-
in: path
5488-
description: Worker instance key to describe.
5489-
required: true
5490-
schema:
5491-
type: string
5492-
responses:
5493-
"200":
5494-
description: OK
5495-
content:
5496-
application/json:
5497-
schema:
5498-
$ref: '#/components/schemas/DescribeWorkerResponse'
5499-
default:
5500-
description: Default error response
5501-
content:
5502-
application/json:
5503-
schema:
5504-
$ref: '#/components/schemas/Status'
55055441
/namespaces/{namespace}/workers/fetch-config:
55065442
post:
55075443
tags:
@@ -7985,11 +7921,6 @@ components:
79857921
Only set if `report_task_queue_stats` is set to true in the request.
79867922
(-- api-linter: core::0140::prepositions=disabled
79877923
aip.dev/not-precedent: "by" is used to clarify the key. --)
7988-
DescribeWorkerResponse:
7989-
type: object
7990-
properties:
7991-
workerInfo:
7992-
$ref: '#/components/schemas/WorkerInfo'
79937924
DescribeWorkflowExecutionResponse:
79947925
type: object
79957926
properties:

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2539,17 +2539,3 @@ message UpdateWorkerConfigResponse {
25392539
// Once we support sending update to a multiple workers - it will be converted into a batch job, and job id will be returned.
25402540
}
25412541
}
2542-
2543-
message DescribeWorkerRequest {
2544-
// Namespace this worker belongs to.
2545-
string namespace = 1;
2546-
2547-
// Worker instance key to describe.
2548-
string worker_instance_key = 2;
2549-
}
2550-
2551-
message DescribeWorkerResponse {
2552-
temporal.api.worker.v1.WorkerInfo worker_info = 1;
2553-
}
2554-
2555-

temporal/api/workflowservice/v1/service.proto

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,15 +1235,5 @@ service WorkflowService {
12351235
}
12361236
};
12371237
}
1238-
1239-
// DescribeWorker returns information about the specified worker execution.
1240-
rpc DescribeWorker (DescribeWorkerRequest) returns (DescribeWorkerResponse) {
1241-
option (google.api.http) = {
1242-
get: "/namespaces/{namespace}/workers/describe/{worker_instance_key}"
1243-
additional_bindings {
1244-
get: "/api/v1/namespaces/{namespace}/workers/describe/{worker_instance_key}"
1245-
}
1246-
};
1247-
}
12481238
}
12491239

0 commit comments

Comments
 (0)