From c9500b85c25393098b85bd90f8c75dc4bee98b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 30 Jun 2022 18:32:42 +0200 Subject: [PATCH] OAPI: add `SocketIOLastRenderedUpdate` for broadcasting last-rendered imgs `SocketIOLastRenderedUpdate` objects are meant to be broadcast to SocketIO clients (i.e. the web interface). They are sent to the job-specific room, just like task updates. --- pkg/api/flamenco-openapi.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/api/flamenco-openapi.yaml b/pkg/api/flamenco-openapi.yaml index 213a99ba..85b136c4 100644 --- a/pkg/api/flamenco-openapi.yaml +++ b/pkg/api/flamenco-openapi.yaml @@ -1529,6 +1529,14 @@ components: description: Chunk of the task log. May contain multiple lines of text. required: [task_id, log] + SocketIOLastRenderedUpdate: + type: object + description: Indicator that the last-rendered image of this job was updated. + properties: + "job_id": { type: string, format: uuid } + "thumbnail": { $ref: "#/components/schemas/JobLastRenderedImageInfo" } + required: [job_id, task_id, thumbnail] + SocketIOWorkerUpdate: type: object description: >