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.
This commit is contained in:
Sybren A. Stüvel 2022-06-30 18:32:42 +02:00
parent 73e1c1930f
commit c9500b85c2

View File

@ -1529,6 +1529,14 @@ components:
description: Chunk of the task log. May contain multiple lines of text. description: Chunk of the task log. May contain multiple lines of text.
required: [task_id, log] 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: SocketIOWorkerUpdate:
type: object type: object
description: > description: >