Skip to content

Commit 4e1d0cc

Browse files
committed
extract DescribeWorker API into separate PR
1 parent b08ef43 commit 4e1d0cc

File tree

3 files changed

+0
-164
lines changed

3 files changed

+0
-164
lines changed

openapi/openapiv2.json

Lines changed: 0 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -2296,49 +2296,6 @@
22962296
]
22972297
}
22982298
},
2299-
"/api/v1/namespaces/{namespace}/workers/describe/{workerInstanceKey}": {
2300-
"get": {
2301-
<<<<<<< HEAD
2302-
"summary": "DescribeWorker returns information about the specified worker.",
2303-
=======
2304-
"summary": "DescribeWorker returns information about the specified worker execution.",
2305-
>>>>>>> 0afb9d8 (work on comments)
2306-
"operationId": "DescribeWorker2",
2307-
"responses": {
2308-
"200": {
2309-
"description": "A successful response.",
2310-
"schema": {
2311-
"$ref": "#/definitions/v1DescribeWorkerResponse"
2312-
}
2313-
},
2314-
"default": {
2315-
"description": "An unexpected error response.",
2316-
"schema": {
2317-
"$ref": "#/definitions/rpcStatus"
2318-
}
2319-
}
2320-
},
2321-
"parameters": [
2322-
{
2323-
"name": "namespace",
2324-
"description": "Namespace this worker belongs to.",
2325-
"in": "path",
2326-
"required": true,
2327-
"type": "string"
2328-
},
2329-
{
2330-
"name": "workerInstanceKey",
2331-
"description": "Worker instance key to describe.",
2332-
"in": "path",
2333-
"required": true,
2334-
"type": "string"
2335-
}
2336-
],
2337-
"tags": [
2338-
"WorkflowService"
2339-
]
2340-
}
2341-
},
23422299
"/api/v1/namespaces/{namespace}/workers/fetch-config": {
23432300
"post": {
23442301
"summary": "FetchWorkerConfig returns the worker configuration for a specific worker.",
@@ -6080,49 +6037,6 @@
60806037
]
60816038
}
60826039
},
6083-
"/namespaces/{namespace}/workers/describe/{workerInstanceKey}": {
6084-
"get": {
6085-
<<<<<<< HEAD
6086-
"summary": "DescribeWorker returns information about the specified worker.",
6087-
=======
6088-
"summary": "DescribeWorker returns information about the specified worker execution.",
6089-
>>>>>>> 0afb9d8 (work on comments)
6090-
"operationId": "DescribeWorker",
6091-
"responses": {
6092-
"200": {
6093-
"description": "A successful response.",
6094-
"schema": {
6095-
"$ref": "#/definitions/v1DescribeWorkerResponse"
6096-
}
6097-
},
6098-
"default": {
6099-
"description": "An unexpected error response.",
6100-
"schema": {
6101-
"$ref": "#/definitions/rpcStatus"
6102-
}
6103-
}
6104-
},
6105-
"parameters": [
6106-
{
6107-
"name": "namespace",
6108-
"description": "Namespace this worker belongs to.",
6109-
"in": "path",
6110-
"required": true,
6111-
"type": "string"
6112-
},
6113-
{
6114-
"name": "workerInstanceKey",
6115-
"description": "Worker instance key to describe.",
6116-
"in": "path",
6117-
"required": true,
6118-
"type": "string"
6119-
}
6120-
],
6121-
"tags": [
6122-
"WorkflowService"
6123-
]
6124-
}
6125-
},
61266040
"/namespaces/{namespace}/workers/fetch-config": {
61276041
"post": {
61286042
"summary": "FetchWorkerConfig returns the worker configuration for a specific worker.",
@@ -10961,14 +10875,6 @@
1096110875
}
1096210876
}
1096310877
},
10964-
"v1DescribeWorkerResponse": {
10965-
"type": "object",
10966-
"properties": {
10967-
"workerInfo": {
10968-
"$ref": "#/definitions/v1WorkerInfo"
10969-
}
10970-
}
10971-
},
1097210878
"v1DescribeWorkflowExecutionResponse": {
1097310879
"type": "object",
1097410880
"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.
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.
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2551,4 +2551,3 @@ message DescribeWorkerRequest {
25512551
message DescribeWorkerResponse {
25522552
temporal.api.worker.v1.WorkerInfo worker_info = 1;
25532553
}
2554-

0 commit comments

Comments
 (0)