OAPI: include task failure list in Task schema

Include the list of workers who failed this task in the `Task` schema.
This commit is contained in:
Sybren A. Stüvel 2022-06-17 11:33:00 +02:00
parent 0b5140fc5f
commit aaed1e0589

View File

@ -1111,6 +1111,9 @@ components:
type: string type: string
format: date-time format: date-time
description: Timestamp of when any worker worked on this task. description: Timestamp of when any worker worked on this task.
"failed_by_workers":
type: array
items: { $ref: "#/components/schemas/TaskWorker" }
required: required:
- id - id
- created - created
@ -1125,6 +1128,7 @@ components:
TaskWorker: TaskWorker:
type: object type: object
description: Worker reference, as used in Task objects.
properties: properties:
"id": { type: string, format: uuid } "id": { type: string, format: uuid }
"name": { type: string } "name": { type: string }