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:
parent
9948fdab71
commit
ed1a968691
@ -1987,6 +1987,7 @@ components:
|
||||
"supported_task_types":
|
||||
type: array
|
||||
items: { type: string }
|
||||
"task": { $ref: "#/components/schemas/WorkerTask" }
|
||||
required:
|
||||
- id
|
||||
- name
|
||||
@ -1996,6 +1997,14 @@ components:
|
||||
- version
|
||||
- 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:
|
||||
type: object
|
||||
description: Request for a Worker to change its status to `status`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user