OAPI: include "task" in fetchWorker response

Include the worker's current/last task in the response of the
`fetchWorker` operation.
This commit is contained in:
Sybren A. Stüvel 2022-07-26 10:27:57 +02:00
parent 9948fdab71
commit ed1a968691

View File

@ -1987,6 +1987,7 @@ components:
"supported_task_types": "supported_task_types":
type: array type: array
items: { type: string } items: { type: string }
"task": { $ref: "#/components/schemas/WorkerTask" }
required: required:
- id - id
- name - name
@ -1996,6 +1997,14 @@ components:
- version - version
- supported_task_types - supported_task_types
WorkerTask:
description: Task assigned to a Worker.
allOf:
- $ref: "#/components/schemas/TaskSummary"
- properties:
"job_id": { type: string, format: uuid }
required: [job_id]
WorkerStatusChangeRequest: WorkerStatusChangeRequest:
type: object type: object
description: Request for a Worker to change its status to `status`. description: Request for a Worker to change its status to `status`.