From ed1a9686916e74a1968cf07f9c8050d486a6ae04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 26 Jul 2022 10:27:57 +0200 Subject: [PATCH] OAPI: include "task" in `fetchWorker` response Include the worker's current/last task in the response of the `fetchWorker` operation. --- pkg/api/flamenco-openapi.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/api/flamenco-openapi.yaml b/pkg/api/flamenco-openapi.yaml index f5fee0c0..542fce90 100644 --- a/pkg/api/flamenco-openapi.yaml +++ b/pkg/api/flamenco-openapi.yaml @@ -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`.