From a3752f311392b9473faae19af5d5b69c939152ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 3 May 2022 11:05:09 +0200 Subject: [PATCH] OAPI: Add SocketIOTaskUpdate schema Add the schema for task updates sent via SocketIO. --- pkg/api/flamenco-manager.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pkg/api/flamenco-manager.yaml b/pkg/api/flamenco-manager.yaml index 1362d18f..2e730411 100644 --- a/pkg/api/flamenco-manager.yaml +++ b/pkg/api/flamenco-manager.yaml @@ -1056,6 +1056,26 @@ components: "priority": { type: integer, default: 50 } required: [id, updated, status, type, priority] + SocketIOTaskUpdate: + type: object + description: > + Subset of a Task, sent over SocketIO when a task changes. + For new tasks, `previous_status` will be excluded. + properties: + "id": + type: string + format: uuid + description: UUID of the Task + "job_id": { type: string, format: uuid } + "name": { type: string, description: "Name of the task" } + "updated": + type: string + format: date-time + description: Timestamp of last update + "status": { $ref: "#/components/schemas/TaskStatus" } + "previous_status": { $ref: "#/components/schemas/TaskStatus" } + required: [id, job_id, name, updated, status] + SocketIOSubscription: type: object description: >